Jump to content
Sign in to follow this  
No.1

A bug in Labview 7.1?

Recommended Posts

Hello, everyone,

I want my user interface window to be maximum, and also want to disable the restore button when I open the vi.

I do that as the attached file.Download File:post-11095-1205976114.bmp

but the result is that the window can also be moved by draging the title bar, and also response once when double click the title bar, and then don't response to that any more.

What can I do to realize the function in Labview 7.1? Thank you.

Share this post


Link to post
Share on other sites

QUOTE (No.1 @ Mar 19 2008, 08:25 PM)

Hello, everyone,

I want my user interface window to be maximum, and also want to disable the restore button when I open the vi.

I do that as the attached file.http://lavag.org/old_files/post-11095-1205976114.bmp'>Download File:post-11095-1205976114.bmp

but the result is that the window can also be moved by draging the title bar, and also response once when double click the title bar, and then don't response to that any more.

What can I do to realize the function in Labview 7.1? Thank you.

Although it may not be desirable to you, one way is to hide the title bar, either by setting the "Title Bar Visible" property to false, or by unchecking "Window has title bar" in the VI properties.

Share this post


Link to post
Share on other sites

QUOTE (Jon Sweeney @ Mar 20 2008, 11:22 PM)

Although it may not be desirable to you, one way is to hide the title bar, either by setting the "Title Bar Visible" property to false, or by unchecking "Window has title bar" in the VI properties.

But I want to show the title bar.

Maybe I can do that by the Windows API?

Share this post


Link to post
Share on other sites

QUOTE (No.1 @ Mar 20 2008, 08:49 PM)

But I want to show the title bar.

Maybe I can do that by the Windows API?

That is not likely possible without intercepting the window message handling function itself. In Windows a window with title bar is in principle always movable. A change in that would require a custom windows message handling function that intercepts the move messages and refuses to operate on them.

Doing that in LabVIEW is quite low level programming and not really possible without an extra DLL that hooks the LabVIEW window message handling function and would intercept the appropriate messages before passing control back to the original LabVIEW window message handling function. All in all a lot of work and complexity to deal with and I would put every possible effort to avoid having to do that in your place.

Rolf Kalbermatter

Share this post


Link to post
Share on other sites

QUOTE (No.1 @ Mar 19 2008, 06:25 PM)

Hello, everyone,

I want my user interface window to be maximum, and also want to disable the restore button when I open the vi.

I do that as the attached file.Download File:post-11095-1205976114.bmp

but the result is that the window can also be moved by draging the title bar, and also response once when double click the title bar, and then don't response to that any more.

This works in almost every case.

post-8758-1206114652.png?width=400

Unfortunately you are still able to double click the title bar one time. I think this is a bug. If resizable is set to False then this should not happen. The functionality is sucessfully blocked once the window is small - you are not able to double click again to maximize.

QUOTE (rolfk @ Mar 21 2008, 04:01 AM)

In Windows a window with title bar is in principle always movable.

If a window is maximized it should not be movable by dragging the title bar.

Share this post


Link to post
Share on other sites

QUOTE (TobyD @ Mar 21 2008, 11:06 AM)

If a window is maximized it should not be movable by dragging the title bar.

And it isn't in LabVIEW either until you make it not maximized. But maximized or not is not the same as resizable or not. And movable is an implicit attribute of non-maximized overlapped windows with title bar unless you customize the windows message handler.

Rolf Kalbermatter

Share this post


Link to post
Share on other sites

QUOTE (rolfk @ Mar 21 2008, 10:55 AM)

maximized or not is not the same as resizable or not. And movable is an implicit attribute of non-maximized overlapped windows with title bar unless you customize the windows message handler.

Rolf Kalbermatter

I completely agree. My only point was that a window with a title bar is not "always movable". When the window is maximized it is not movable, so if there were a way to keep the window maximized the problem would be solved.

Toby

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.