Window Restore changes vertical size


https://www.nevron.com/Forum/Topic6538.aspx
Print Topic | Close Window

By Brad Swearingen - 12 Years Ago
I noticed that when minimizing and restoring my main (NForm) window that the vertical height was increasing each time I did this.  I then tried doing the same thing with the "Nevron User Interface - Part of Nevron .NET Vision - Examples" window and noticed its vertical height changes each time too.  This only happens when using a skin or changing the frame.  I'm using the 11.12.14.12 build.
By Nevron Support - 12 Years Ago
Hello Brad,

Could you specify what OS do you use?
By Brad Swearingen - 12 Years Ago
I noticed this on Windows 7.
By Brad Swearingen - 12 Years Ago
Also, on Windows 7 I'm using the "Windows 7 Basic" theme in case that has something to do with it.  I've not tested on other themes.
By Nevron Support - 12 Years Ago
Hello Brad,

I tested the described scenario, but I couldn't reproduce the issue that you described.

On a Windows 7 with "Windows 7 Basic" theme with the version of the assemblies 11.12.14.12

I created a new NForm and in the constructor I set a custom frame as follows:

NFrameAppearance appearance = NUIManager.GetPredefinedFrame(PredefinedFrame.Simple);
FrameAppearance = appearance;

Is there anything else in your code regarding the form which I can set in order to reproduce the problem?
By Brad Swearingen - 12 Years Ago

Thanks for looking into it. 

You don't need to write code.  Just test the "Examples C#" window you provide with the Nevron toolkit, like I wrote ("C:\Program Files (x86)\Nevron Software\Nevron .NET Vision 2011.1 for VS2010\Examples\UI\WinForm\CSharp\bin\Release\Nevron.Examples.UI.WinForm.exe").  This comes with the toolkit install.  I've not changed it.

It shows the same problem.  It starts out maximized when you launch it and is using the VistaPlus frame.  Just restore it, minimize it, restore it, minimize it, etc..  You'll notice after each restore that the bottom grows by a few pixels if you are using a frame or a skin.  When you select Edit>Frame>System Default it stops doing that.  My program has the same exact problem.

By Nevron Support - 12 Years Ago
Hello Brad,

Finally, I manage to reproduce it.
It is caused because of the different behavior of a Win API function under XP and upper versions of Windows.
As soon as we solve it we will let you know.
Sorry for the inconvenience.
By Brad Swearingen - 12 Years Ago
Great.  Thanks.