04-17-2014 10:38 AM
Is there a way to center a LV popup?? If I run the vi that has a popup message in it it'll appear in the upper right hand corner of the screen every time. Can't you center the message?
Also, if I put menu buttons or a string ( as a control to display a message say) on my front panel how do I get that to appear in the center of my vi?? If I close the vi w the buttons or string control off screen when the vi is run the buttons/string control are off screen where I "left" them.
Thanks..
Solved! Go to Solution.
04-17-2014 10:48 AM
If that "popup" is your own dialog type VI, got to the VI properties and set the run time position to centered.
04-17-2014 10:56 AM
VI Properties>> Windows run time position Allows you to select several options that will be saved with the vi.
You can also set the runtime position property when you run the vi if you want to open it in a position relative to wherever the main vi panel is just get your main panel coordinates do a bit of math and set the position property.
04-18-2014 04:50 AM
Jeff,
This solution worked as well but I was only able to mark one...the 1st one.
Thanks..Clint
02-23-2016 08:12 AM
altenbach,
You had answered my post about a popup I created back in 2014. What about the "Two Button Dialog " popup that come w Labview? Is there a way to center those?? Right now it appears in the lower right all the time. I searched Discussion Forums and KB w/o any luck
Thanks,
Mark
02-24-2016 08:41 AM
Mark,
The Two Button Dialog box should appear in the center of the VI that calls it. The only way to choose where it appears is to place it in a seperate VI and then call that VI by reference as explained in this KB:
http://digital.ni.com/public.nsf/allkb/DDFA52A1CD6812A6862574B9006C1FF7
02-24-2016 08:57 AM
So if the two button dialog doesn't center any reason, you know of, why?
02-24-2016 09:05 AM - edited 02-24-2016 09:06 AM
The dialog VIs will center the popup on the active LabVIEW window. If you click on the block diagram and hit Run, it will center on the block diagram window. If you have the front panel selected, it will center on the front panel window. If you open a whole new VI, add a delay before the popup on the first VI, click Run, and then click on the new VI, it will center on the new VI.
If you are not seeing this behavior, share your code.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'