Jump to content

Force Pane Size event


Axelwlt

Recommended Posts

Hi

My main VI contains a whole bunch of splitters and inserted VIs. These VIs all need to react to Pane Size event of their pane.

The event comes as expected when the user resizes the main window. But it does not come when I programatically set the main FP Panel Bounds or Windows Bounds.

How can I force the event to come? Programatically moving the splitters 1 pixel and back does the trick, but that's an ugly solution.

Link to comment

Well technically, an event frame is for user events. If you programmatically resize the panel (which is not a user action), then it's your job to tell everyone to fix themselves. Sure we could argue forever on that one point. But it seems much less hacky to send a panel resize cleanup message than to jiggle the splitters. Imagine someone trying to read your code and figure out why you're jiggling the splitters.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.