10-12-2010 02:39 PM
I know this is somewhat a silly question.
In my wildest imagination, will it be possible to undock/dock a page from a a tab control. Of course I could not find anything from the property node or invoke node to achieve this.
Solved! Go to Solution.
10-12-2010 02:48 PM
How many Kudos would giving you a hint to realize that dream be worth?
Ben
10-12-2010 02:51 PM
@ade77 wrote:
I know this is somewhat a silly question.
In my wildest imagination, will it be possible to undock/dock a page from a a tab control. Of course I could not find anything from the property node or invoke node to achieve this.
In your wildest imagination? Sure!
In the real world?... Not so much.
Perhaps a scripting expert will chime in...
10-12-2010 02:56 PM - edited 10-12-2010 03:03 PM
@Ben wrote:
How many Kudos would giving you a hint to realize that dream be worth?
Ben
Sometime I guess I can be a little TOO subtle.
CLICK HERE to see a working demo.
Ben
10-12-2010 03:13 PM
Ben,
my wildest imagination has been realized. I would have given you 10, 000 kudos, but unfortuantely I am restricted to 1.
Now I believe there is nothing impossible with LabVIEW.
Thank you vey much.
10-12-2010 03:25 PM
I need a memory upgrade. I downloaded Ben's docking_example code a long time back but it totally slipped my mind.
One more Kudo for you though!
10-12-2010 03:29 PM
You don't need scripting as much as some low level window management with respect to hosting windows in a VI front panel (subpanels) and free floating windows (just the VI). I might add a host with subpanel for the free floating window, as well, just to encapsulate the dock and undock behavior, but Ben's example certainly covers the basics.
10-13-2010 08:03 AM
@DFGray wrote:
You don't need scripting as much as some low level window management with respect to hosting windows in a VI front panel (subpanels) and free floating windows (just the VI). I might add a host with subpanel for the free floating window, as well, just to encapsulate the dock and undock behavior, but Ben's example certainly covers the basics.
I concidered that but ruled it out becuase I had a self-imposed requirement that the code used in the sub-panel would not have to change as a result of being used in an un-dockable page.
What I have concidered but never got around to was wrapping it up in an XControl and exposing a method to define the VI to run in the sub-panel. THe XControl would also handle the tedious work of sizing and postioning the objects at development time.
I would be very interested in other commenting on how to decide when to close the template. I resorted to polling the state of the calling VI since I discovered no better method of ALWAYS catching the caller going idle.
Thank you!
Ben
10-13-2010 08:05 AM
@ade77 wrote:
Ben,
my wildest imagination has been realized. I would have given you 10, 000 kudos, but unfortuantely I am restricted to 1.
Now I believe there is nothing impossible with LabVIEW.
Thank you vey much.
I would be very happy getting another Kudos on the post with the example.
I am glad it helped.
Have fun!
Ben
10-13-2010 09:47 AM
@Ben wrote:
What I have concidered but never got around to was wrapping it up in an XControl and exposing a method to define the VI to run in the sub-panel.
I didn't look at it in a long time, but the code here might help as an example - http://lavag.org/topic/5099-xcontrols-as-childwindows