LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I set the window scroll bar position when a VI is loaded

Solved!
Go to solution

I would like to fix the positions of scroll bars of the front panel when the vi is loaded, is it possible?

0 Kudos
Message 1 of 6
(3,164 Views)

Using LabVIEW 2019, they retain the position they had whenever you last saved the VI.

Is that not what you observe? Or just not what you want?


GCentral
0 Kudos
Message 2 of 6
(3,163 Views)

I would like a tab control (or the front panel (0,0) position) to be at the top left corner of the front panel window when the vi is loaded, no matter where it is when I closed/saved the vi.

 

It is just a "for convenience" question.

0 Kudos
Message 3 of 6
(3,147 Views)
Solution
Accepted by TulaRen

I like to do this too. I tend to set the front panel origin programmatically on all of my top level vi’s to make sure that they are in the right position when I recompile the exe. 

Have a look at this link. This is how you do it. 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6wgSAC&l=en-GB

0 Kudos
Message 4 of 6
(3,116 Views)
Solution
Accepted by TulaRen

Then you want to use a Property Node to set the Origin position.

You can also look at this link for more details: Programmatically Scroll a VI's Front Panel 


GCentral
0 Kudos
Message 5 of 6
(3,111 Views)

Great! Exactly what I want to do. Thank you.

0 Kudos
Message 6 of 6
(3,102 Views)