01-05-2009 09:12 AM
01-05-2009 10:43 AM
Hmm, yes! That certainly acts weird!
(It behaves a little better with the scrollbars off, but still does not work right).
01-05-2009 04:28 PM - edited 01-05-2009 04:30 PM
The problem is due to the fact that while the FP is resized, multiple resize events are fired. As explained in the LV help, an additionnal event occurs when you stop resizing, resulting in NewBnds = OldBnds.
So the idea is now to store the initial OldBnds when you start resizing, and to restore the stored data when you stop. As shown in the attached VI.
The cluster wire coming from the left is a small refinement to take into account the presence of the panel scroll bars (what a lack of coherence here between the panel bound definitions ! 😞 )
01-05-2009 05:48 PM
Hi ceties,
The fundamental problem is that there is not a Filtered Event option for Panel Resize. Therefore we are forced to deal with resizes after the fact with no ability to "filter out" requests that we don't want.
I have not found a way to make it look good - you will get some flashing as the panel is resized. Be aware that the Maximize button on the front panel will also call the Panel Resize event.
As CC illustrated, if you capture the FP Bounds before you start your loop, it sort of works.
I would really like National to add a Filtered Event option to Panel Resize.
steve
01-06-2009 04:23 AM
01-06-2009 04:33 AM
Here we go....
01-06-2009 04:38 AM
01-06-2009 09:52 AM - edited 01-06-2009 09:54 AM
Try Resize Configure .
It uses external code to prevent user resize the panel. One can enable/disable resize on left, top, right, or bottom edge independently.
For example, allow resizing on bottom edge only, no resize on top, nor left/right. Notice the cursor will change if resize allowed.
The method prevent resize. Better than allow resize, and then resize back to original size.
George Zou
http://www.geocities.com/gzou999
01-06-2009 03:57 PM
01-06-2009 04:29 PM
ceties wrote:
Nice work George as usually. But as usually not for free or with included messagebox 😞 I would like to know how you do this witchcraft 🙂
Take a look this thread:
George Zou
http://www.geocities.com/gzou999