Axelwlt Posted November 11, 2018 Report Share Posted November 11, 2018 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. Quote Link to comment
Michael Aivaliotis Posted November 11, 2018 Report Share Posted November 11, 2018 I assume you already have a mechanism to send messages to these sub-paneled VIs? Could you use that? Quote Link to comment
Axelwlt Posted November 11, 2018 Author Report Share Posted November 11, 2018 In theory yes, I use the actor framework, but it would be much easier if my pane resizing mechanism did not use these messages. Quote Link to comment
Michael Aivaliotis Posted November 12, 2018 Report Share Posted November 12, 2018 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.