LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

undock/dock a tab page

Solved!
Go to solution

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.

0 Kudos
Message 1 of 10
(5,795 Views)

How many Kudos would giving you a hint to realize that dream be worth?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 10
(5,786 Views)

 


@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!  Smiley Happy

In the real world?...   Not so much.  Smiley Sad

 

Perhaps a scripting expert will chime in...

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 3 of 10
(5,781 Views)
Solution
Accepted by topic author ade77

@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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 10
(5,774 Views)

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.

0 Kudos
Message 5 of 10
(5,760 Views)

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!

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 10
(5,752 Views)

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.

Message 7 of 10
(5,749 Views)

@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

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 10
(5,704 Views)

@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. Smiley Wink

 

I am glad it helped.

 

Have fun!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 10
(5,702 Views)

 


@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

 


___________________
Try to take over the world!
Message 10 of 10
(5,685 Views)