LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

front panel resizing

Solved!
Go to solution

Hi, 

is it possible to resize front panel window when the exe(app) is open. I want to open app made from labview and that fwindow is the same size as the front panel i made in labview.

0 Kudos
Message 1 of 9
(321 Views)

Hi Tim,

 


@tominsek wrote:

is it possible to resize front panel window when the exe(app) is open. I want to open app made from labview and that fwindow is the same size as the front panel i made in labview.


Yes.

 

You can:

  • set a fixed window size and hide the scrollbars (at edit time)
  • disable window resizing in the VI settings
  • the frontpanel size is a property of the VI…
  • use splitters to define panes and even work with a resizable frontpanel. This way you could set the MCLB to adapt to window size - but than you shouldn't use tabs like you do now. (Making resizable frontpanel involves some amount of work, so make sure you really want that.)
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 9
(284 Views)

Hi Gerd

 

where do i find these settings to set as you wrote

0 Kudos
Message 3 of 9
(272 Views)

VI Properties:

dsbNI_0-1754920321302.png


and also:

dsbNI_1-1754920371107.png

 

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 4 of 9
(263 Views)

@tominsek wrote:

Hi, 

is it possible to resize front panel window when the exe(app) is open. I want to open app made from labview and that fwindow is the same size as the front panel i made in labview.


That is the default behavior (except if the front panel is maximized to the screen), thus you don't really need to do anything unless you already customized some of the settings mentioned. did you?

 

Of course your question is very ambiguous because no "resizing" is needed if you want to keep the same size in pixel unit. If you want to keep the same "size" in real world measurement units (centimeters, inches, etc.), things will get very complicated and you need to know e.g. the dot pitch of the monitor.

 

One related problem is If you use symbolic fonts (e.g. the default "application font"), because they will inherit scaling from the OS settings and typically mess things up. I always use define fonts (e.g. Tahoma 13) for all my front panel elements.

Message 5 of 9
(246 Views)

when i open the exe (app) that i built, it needs to be open like that:

tominsek_0-1754925324609.png

 

and not opened like that:

tominsek_1-1754925361257.png

 

0 Kudos
Message 6 of 9
(204 Views)

ScrollToOrigin.png

0 Kudos
Message 7 of 9
(173 Views)
Solution
Accepted by topic author tominsek

Hi Tim,

 


@tominsek wrote:

when i open the exe (app) that i built, it needs to be open like that:

 

and not opened like that:


As I wrote before: set the frontpanel to the desired size (and do a minimal change in the block diagram to enforce a "dirty flag") and save the VI.

Now you should have set the frontpanel size that the VI will open with.

 

Additional stuff you can do (as explained before):

  • set a (minimal) window size in the VI properties
  • disable/hide the scrollbars for the frontpanel in the VI properties
  • set a frontpanel size using VI properties

I also recommend to keep the panel origin at [0, 0], your frontpanel is shifted by ~20 pixels. When you "clean up" the frontpanel then recent LabVIEW versions will automatically position the frontpanel at the origin…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 9
(161 Views)

@GerdW wrote:

When you "clean up" the frontpanel then recent LabVIEW versions will automatically position the frontpanel at the origin…


For good measure, you can also set the panel to scroll to the origin at runtime. (Sometimes you want some area outside the runtime edges (to e.g. park stuff during editing).

 

Also make sure to disallow resizing the front panel (especially maximizing!).

Message 9 of 9
(143 Views)