LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to maximize a window and can't be able to move it

Hi everyone,
 
I'm doing an HMI and what I want to do is to maximize a window. I can do it in the VI proprieties -> Window Run-Time Position -> Position: Maximized. The problem I get is when I run it, the user can move the window with the title bar.
 
I don't want to move the window. The window has to stay at the same place.
Is there a way to do this (without taking off the title bar)?
 
Thank you
Stephanie
0 Kudos
Message 1 of 9
(4,389 Views)
Yes.  G Toolbox can help you disable move even if the window has titlebar.
 
George Zou
0 Kudos
Message 2 of 9
(4,373 Views)
Hi,
 
I don't find this proprieties in the site. I only find "Move window with no titlebar".
Could you please tell me where exactly in the site I can download it?
By the way, I have LabVIEW 8.2 I don't know if it's going to be a problem.
 
 
Thank you very much
Stephanie
0 Kudos
Message 3 of 9
(4,366 Views)

Stephanie,

I was not able to find a way to lock the window without removing the title bar. If you want to go ahead with that solution, follow this link for a suggestion on how to display your program over the windows start button as well.

http://forums.ni.com/ni/board/message?board.id=170&message.id=52587&requireLogin=False

Otherwise, follow zou's suggestion with Gtoolbox. However, it is available only for LabVIEW 7.1, 7, 6.1, & 6.
Hope that helps!

Kalin T
Applications Engineer
National Instruments

Kalin T.
0 Kudos
Message 4 of 9
(4,345 Views)
Kalin T wrote:
> Otherwise, follow zou's suggestion with Gtoolbox. However, it is available only for LabVIEW 7.1, 7, 6.1, & 6.
 
G Toolbox is available in lv8.0.1 too.  And soon will be available for 8.2
 
George Zou

 
George Zou
0 Kudos
Message 5 of 9
(4,300 Views)

Thanks everyone for helping me!

But it doesn't really help me much.... Smiley Sad

I want to maximize the window (so in the Window Runtime position, I put "Maximize"). I want a title bar to show the name of the VI (I check the "Window has title bar" in the Window Appareance). I don't want to be able to resize the window (I uncheck the "Allow to resize window" in the Window appareance). When I do the last thing, the window can move and it's exactly want I don't want to do. If I uncheck this option, the user can click on the square and be able to resize and move the window.

Maybe there's an option somewhere in the proprieties that can disable moving the window? Why the window can move if I maximised the window and I can be able to resize the window? When it's a real maximize, the window can't move.

Except with the Toolbox (well, I can't use it anyway, because I have version 8.2), is there any other way to do this?

I'd like to have answers please (event if it's no Smiley Wink)

 

Thank you very much again

Stéphanie

0 Kudos
Message 6 of 9
(4,264 Views)
Why not to use a string indicator to show the vi name instead of the title?
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 7 of 9
(4,260 Views)
Because it's ugly hehe Smiley Wink
 
I'm doing an HMI and it has to look professionnal
 
But thanx for the idea Smiley Wink
0 Kudos
Message 8 of 9
(4,253 Views)
You can try the attached snippet of code. This works by removing the "Move" menu item, which effectively removes the ability to resize a window. Unfortunately, this does not remove the ability to double-click on the title bar to change the window size. As far as I can tell the only way to handle that is through an event handler, which is what I did in the code.
Message 9 of 9
(4,241 Views)