LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Removing the space used for menubar and toolbar in executable

The code is not really needed, as everything done is "playing" with the VI properties.

0 Kudos
Message 11 of 28
(1,456 Views)

My apologies, too much Turkey has fried my brain.  Others have, indeed, mentioned that this can easily be done during Development by adjusting the VI Properties before building the Executable.  I also must confess that I tested this in LabVIEW 2016, not yet in LabVIEW 2018 ...

 

Bob "Oops" Schor

0 Kudos
Message 12 of 28
(1,455 Views)

So in short (please confirm or give steps to reproduce):

 

+ hide toolbar and\or menu in VI properties

+ run the VI

>LV18 won't hide them

+ Resize the VI

>LV18 will hide them

 

 

0 Kudos
Message 13 of 28
(1,441 Views)

The easy way to do this is to go to VI Properties --> Windows Appearance and select the "Dialog" radio button.  This should set up the appearance exactly how you need it.  If not, you can select the "Customize" radio button.  This gives you the option to customize the current appearance of your VI.  Since "Dialog" is the current appearance, that's how the customize menu will be set up.  It's probably easier to set it up as "Dialog" and customize that than it is to customize the "Default" setting and forget something.

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 14 of 28
(1,435 Views)

I have just made a little test vi that does exactly as you describe. In VI properties I removed (hidden) the menu bar and the tool bar, and set the minimum panel size to 400x400.

 

When the VI runs, it still displays the menu bar and tool bar, but when resized it dissapears and stays away even when minimized. That has got to be a bug.

 

In my main VI, I have developed the UI to fit a resolution of 1024x768. But should it be displayed in maximized mode on a larger resolution it looks bad, why I just wants it to be centered. So how do I make sure that the menu bar and toolbar (or the space allocated for it) always will stay away?

0 Kudos
Message 15 of 28
(1,433 Views)

Observation:

 

If the test VI is in minimized mode before running it, the toolbar and menu bar stays. If the test vi is maximized before running, the toolbar and menu bar is away as wanted. Why?

0 Kudos
Message 16 of 28
(1,430 Views)

I think this is related to the "Minimum Panel Size" and the current panel size.  When your panel is at the minimum panel size and then you run, the window needs to shrink to remove the menu and toolbar.  But this will make the panel size smaller than the minimum and I think it is erroring out and being ignored by the innerds of the generated code.  Just barely resize your panel to be slightly larger than the minimum (in either direction), and the issue seems to go away.

 

Yes, I say this is a bug.  But there is at least a simple work around.

 

And I just confirmed the same issue in 2016.  But it works just fine in 8.2 (I don't have any versions between those two available to try).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 17 of 28
(1,425 Views)

Something seems corrupted with that specific VI.

I see the behavior you are describing when I run it.  But if I make the VI slightly larger than the minimum size, like 401 x 401, it doesn't give the extra space.

 

I created a new VI and modeled it after yours, I didn't see a problem at all.

0 Kudos
Message 18 of 28
(1,423 Views)

@RavensFan wrote:

I created a new VI and modeled it after yours, I didn't see a problem at all.


Really?  I got it immediately with a new VI in 2016 (attached).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 19 of 28
(1,419 Views)

@crossrulz wrote:

@RavensFan wrote:

I created a new VI and modeled it after yours, I didn't see a problem at all.


Really?  I got it immediately with a new VI in 2016 (attached).


I created from scratch in 2018.

0 Kudos
Message 20 of 28
(1,415 Views)