LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exe init position

Hi all,

 

I got a qustion for VI application run-time position after many different trying....

 

For a build application, user could possibly move window to anywhere on screen.

My goal is to save the last execution run-time position.

And call it out at next time to initialize window.

 

I tried to use property-win.bounds.

It works!

But there's a small problem.

Execution window seems like to show up at a system init positon and then move to saved position from last time.

This move will make exe window looks like blinking for once at beginning.

I also tried to hide panel first and show up after panel moved to saved position.

But it make situation worse, window seems like blinking twice at start up.

 

Although this problem will not affect performance.

But I would really like to sove it.

Thanks for any respond!

0 Kudos
Message 1 of 3
(3,505 Views)

Hi Harry,

 

How about using the WIndow Run TIme Position option in VI Properties.

 

See the below picture, you may change the position with available options,

 

It is showing at init position because the default postion is 'Unchanged'

 

Run Time Position.JPG

 

Hope it helps.

-
Amit
CLAD
0 Kudos
Message 2 of 3
(3,486 Views)
Hi Amit,

Yes I've tried it.
But I need to do it programmatically to call last position.
There will be only a static value in VI properties.
I also tried to use invoke-fp.run-time position which should be the same function like what u mentioned.
Strange, it will only affect at second time execution in development environment.
For build application, it didn't work and some times error of input value.
0 Kudos
Message 3 of 3
(3,439 Views)