LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to make a collapsible front panel object?

Solved!
Go to solution

Hi all,

 

Below is a picture of my front panel.

 

Screenshot (2).png

The right panel ('Haptic STM Controller') shows important information and controls that I want to be visible at all times. The left panel ('Addons'), however, doesn't really need to be seen more than once on startup. I was wondering if there was some way to collapse/expand the 'Addon' section on a button press? Scrolling to it works fine, but either means the section is cut off (adding clutter) or not immediately visible.

 

It's most definitely a first-world problem, but I was just wondering if it's possible since I couldn't find anything about it online. Any tips would be greatly appreciated.

 

Thanks!

0 Kudos
Message 1 of 7
(2,418 Views)

First of all, a functional, efficient front panel should be a design goal, so your request is not unreasonable.  Have you considered making it a subVI to be called with its front panel visible during initialization (and whenever else you feel like calling it)?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 2 of 7
(2,410 Views)
Solution
Accepted by topic author mpfreeman

Check this out. I've never gotten a chance to use this, it's just a "LabVIEW Useful Snippit" from an old coworker.

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

Message 3 of 7
(2,407 Views)

This is very cool, thank you!

0 Kudos
Message 4 of 7
(2,392 Views)

Echoing Billko, and noting you said your Front Panel Object is there during initialization time (when, presumably, you are not yet using the other right-hand panel), have you thought of making your Initialization routine (and its Front Panel) a Modal VI?  This, by design, means that it "pops up" in front of other Windows (I usually set the Screen Position for my Modal Initialization VIs to be Centered), and disappears when you push its "OK" (or "Abort", or whatever Buttons you are using to say "I'm done with you, now exit and pass out the Information you gathered").  You can find the Modal button on the right side of the Window Properties (if my memory serves) for your Initialization VI.

 

Bob Schor

Message 5 of 7
(2,317 Views)

@Bob_Schor wrote:

Echoing Billko, and noting you said your Front Panel Object is there during initialization time (when, presumably, you are not yet using the other right-hand panel), have you thought of making your Initialization routine (and its Front Panel) a Modal VI?  This, by design, means that it "pops up" in front of other Windows (I usually set the Screen Position for my Modal Initialization VIs to be Centered), and disappears when you push its "OK" (or "Abort", or whatever Buttons you are using to say "I'm done with you, now exit and pass out the Information you gathered").  You can find the Modal button on the right side of the Window Properties (if my memory serves) for your Initialization VI.

 

Bob Schor


I think this approach is much cleaner, simpler, and "expected behavior".

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 7
(2,315 Views)

@billko wrote:

@Bob_Schor wrote:

Echoing Billko, and noting you said your Front Panel Object is there during initialization time (when, presumably, you are not yet using the other right-hand panel), have you thought of making your Initialization routine (and its Front Panel) a Modal VI?  This, by design, means that it "pops up" in front of other Windows (I usually set the Screen Position for my Modal Initialization VIs to be Centered), and disappears when you push its "OK" (or "Abort", or whatever Buttons you are using to say "I'm done with you, now exit and pass out the Information you gathered").  You can find the Modal button on the right side of the Window Properties (if my memory serves) for your Initialization VI.

 

Bob Schor


I think this approach is much cleaner, simpler, and "expected behavior".


My posts sometimes tend to be terse to the point where there are maybe not quite enough words to convey the intent of the post.  What I meant to say is that the method that Bob and I are suggesting (open a subVI with the front panel shown, and modal, close when done) is cleaner, simpler (no fancy front panel manipulations) and "expected behavior" - meaning that usually when someone wants to configure a setting, a dialog pops up that shows configurable items.  The LabVIEW "Options" dialog is a good example.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 7
(2,283 Views)