Jump to content

Subpanel Resize Event


hooovahh

Recommended Posts

Okay I swear I saw this somewhere but I can't seem to get it to work.  If I have a subpanel and I load a VI into it, then run the VI and resize the subpanel (causing the VI in it to resize) why does my "Panel Resize" event not fire in that VI?

 

Attached is a quick test.  Run Child and see the "NewBnds" value change as you resize.  Now run Parent and resize.  Notice that "NewBnds" does not change.

 

Crosspost

SubPanel Resize Test.zip

Link to comment
I usually stick with the Pane Size events, I believe that those will fire as expected in the subPanel.

Okay so the Pane Size event does fire, but as shown in my example, the Panel Resize does not.

 

Edit:  Thanks for the cross post.

Edited by hooovahh
Link to comment
I usually stick with the Pane Size events, I believe that those will fire as expected in the subPanel.

 

Great tip! Hearty +1! In the past, I've brokered resize events from the parent into the children using the application's interprocess messaging -- using Pane resize events will simplify this :-)

Link to comment
  • 4 weeks later...

I noticed about a year ago that there are several properties, methods, and events that only work with single-pane VIs. Pretty much everything called "Panel" changes (or breaks) its behavior when you add a splitter or subpanel to the FP. In those situations, as others have recommended, use the "Pane" events when possible, and beware coordinate system conversions between "Panel" and "Pane" properties.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.