Jump to content

Return from Maximize and window is messed up


Recommended Posts

Here is the setup:

You have a VI with at least one horizontal splitter. In each pane you have an object set to fit to pane (scale object with pane). (for example, a multi-column listbox).

The user maximizes the screen. They then move the splitter bar that separates the upper and lower panes below the previous (un-maximized) bottom of the window. Finally, they return the window to its previous size (by pressing the un-maximize, or restore button). The result is a totally messed up window.

Is there any way to avoid this? See attached VI.

Download File:post-2411-1239747456.vi

Before:

post-2411-1239747462.jpg?width=400

After:

post-2411-1239747469.jpg?width=400

Link to post
Share on other sites

QUOTE (Darren @ Apr 14 2009, 03:32 PM)

Definitely a bug, I was able to reproduce in 8.6. I couldn't find a workaround, but I filed CAR# 160408 on the issue.

-D

Thanks for the quick follow up. I guess I'll file that in the 'just don't do that' bin for now...

Link to post
Share on other sites

Can reproduce it too.

If you resize the window it sorts itself out. Looks like a refresh problem. I can get round it by writing to the bounds property of the vi (i.e forcing a refresh). But that doesn't enable you to "restore".

Link to post
Share on other sites

I reported a similar bug to NI a while back regarding the resizing of windows and panes. From what I was told at the time they weren't error checking there calculations or watching boundary conditions carefully enough. It was totally screwing up my resizing. I haven't heard of it being fixed yet.

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.

×
×
  • Create New...

Important Information

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