Hi,
My front panel contains a picture control that fills the panel. I allow the user to resize the window and also apply zoom factors to it. At times, I have to limit the panel size to prevent the panel from being larger than the drawing area of the picture. This is easy to do when the zoom factor is changed, but I'm having trouble finding a good solution when the user reszes the panel.
Currently I am using the "Panel Resize" event to detect when the panel size has changed and if it is too big I use a property node to reset the front panel bounds. This works but is not ideal. Since this is not a filtered event, I can only fix it after it has been moved which means the user can see the front panel background momentarily before I can properly set the size.
Is there a more elegant way to accomplish this task?
Ideally, I'd like to programmably set a limit on the maximum front panel size such that as the user resizes then panel, it just stops at that limit.
Thanks in advance,
steve
LV 8.2 but soon 8.5
----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------