Form.Height problem after minimize/restore

Topics related to the Krypton Ribbon.

Moderators: Phil Wright, Chris Porter

Form.Height problem after minimize/restore

Postby -Sun- » Fri Jan 02, 2009 12:25 am

When i minimice the form to taskbar and restore it, the form.height is 28px higher.
I reproduced this in a blank project and this only happens if a Ribbon is on the form.

Wrong settings? Bug? Workaround?

Regards
Gerhard
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Re: Form.Height problem after minimize/restore

Postby Kai » Sat Jan 03, 2009 12:56 am

I can confirm these error in my application...
Kai
 
Posts: 3
Joined: Thu Oct 16, 2008 1:55 am

Re: Form.Height problem after minimize/restore

Postby -Sun- » Tue Jan 06, 2009 7:32 am

Any official statement about this bug?
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Re: Form.Height problem after minimize/restore

Postby Phil Wright » Tue Jan 06, 2009 6:32 pm

Which operating system and visual themes are you using that cause the issue?
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Form.Height problem after minimize/restore

Postby -Sun- » Tue Jan 06, 2009 6:55 pm

OS: Win Vista 64 Home Prof Sp1
Themes: all Office2007 and all Sparkle

Just now tested on WinXP Prof SP2. There it works fine. Looks like a problem with Vista or with 64bit OS.
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Re: Form.Height problem after minimize/restore

Postby SergeyA » Sun Jan 11, 2009 1:56 am

Reproduced. (Vista 32 bit, SP1)
SergeyA
 
Posts: 8
Joined: Tue Aug 05, 2008 11:12 pm

Re: Form.Height problem after minimize/restore

Postby Phil Wright » Wed Jan 14, 2009 2:32 pm

I have added this bug report to the bug system for investigation in the future.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Form.Height problem after minimize/restore

Postby -Sun- » Thu Jan 22, 2009 11:46 pm

@Phil

Just for info:
If i set "AllowFormChrome" to false, the height is ok after minimize/restore.
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Re: Form.Height problem after minimize/restore

Postby -Sun- » Wed Mar 25, 2009 7:49 am

Bug still exists in 3.5.0.0
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Re: Form.Height problem after minimize/restore

Postby Phil Wright » Wed Mar 25, 2009 9:27 am

Bug still exists at the moment. I cannot reproduce the problem and have no idea how to fix it just from the description alone.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: Form.Height problem after minimize/restore

Postby weedorbeat » Thu Mar 26, 2009 9:53 am

Hello,

same problem after Maximized/Shrink.

Data:
Krypton Version: 3.5.0
Application: all Ribbon Forms
OS: Win Vista 64 Ultimate - Sp1

Regards
Phill
weedorbeat
 
Posts: 21
Joined: Thu Mar 26, 2009 2:24 am

Re: Form.Height problem after minimize/restore

Postby -Sun- » Tue Nov 17, 2009 9:22 am

Now new config and testapp:

Windows 7 / 64 Bit
Krypton 3.5.2

- Height resize problem when minimize/restore
- cant move form by dragging titlebar
- cant close form on "red x"

Small project added.
FormChromeBug.zip
(45.13 KiB) Downloaded 28 times
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Re: Form.Height problem after minimize/restore

Postby -Sun- » Sat Nov 21, 2009 3:17 am

Can anyone confirm these bugs still present in 4.1 or not?
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Re: Form.Height problem after minimize/restore

Postby vesuvius » Tue Nov 24, 2009 8:37 pm

The worst thing is when you complain like this and the problem is your fault as a developer (problem exists between keyboard and chair). It's always the weaker developers that tend to complain more, whereas the smarter ones are equipped to resolve most issues.

I have had a look at the code you have posted and there is an issue with way you have created the ribbon. If you use the Visual Studio templates to create the ribbon form you end up with a form that works well. What you are doing is adding a panel to a form, then adding a ribbon on top of this. The ribbon must always be the top control on a form. The panel must maximise so that it is below the ribbon. There is another thread where another user had similair issues and used the most awful language against Krypton, when it was their fault all along.

I would also like to say the the issues you are voicifeous about are of such a critical nature, that if they did exist, none of us would be able to use Krypton, so the problem goes back to your machine.

I also would prefer not to be involved in a flame-war, I say when I think, so if that is difficult to take at times, so be it, but I will try and assist you if you have any other issues (PM me)

Regards,

Vesuvius
vesuvius
 
Posts: 582
Joined: Thu Aug 16, 2007 8:38 pm
Location: Yorkshire, England

Re: Form.Height problem after minimize/restore

Postby -Sun- » Tue Nov 24, 2009 10:18 pm

The only thing i do is using Visual Studio, making a new project, adding a kryptonform, adding a ribbon on the form and changing values. If this is wrong, ok, then i am the problem. But this is in my opinion how it should work.
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Re: Form.Height problem after minimize/restore

Postby vesuvius » Tue Nov 24, 2009 10:29 pm

If you are going to do it manually MAKE SURE you dfo not place the ribbon on a Krypton panel or any panel.

If I go by your steps you have just stated, when you add a form this has a krypton panel on it, delete this and add the ribbon on a naked form

This is your form with a bug in it

Image

This is a form without the bug in it


Image
vesuvius
 
Posts: 582
Joined: Thu Aug 16, 2007 8:38 pm
Location: Yorkshire, England

Re: Form.Height problem after minimize/restore

Postby -Sun- » Tue Nov 24, 2009 10:39 pm

Thx for answer and i understand the problem. But is it wrong how i expect Krypton should work?

So if i want do a safe way i add a kryptonform, delete the panel, add the ribbon and add a panel !?
Isnt there a way to check that the ribbon is first obejct on a form when adding it, So this "bug" couldnt exist?
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Re: Form.Height problem after minimize/restore

Postby vesuvius » Tue Nov 24, 2009 10:56 pm

The Krypton ribbon templates are available in visual studio, if you are using express (which I started on) then there are issues like this that you run into (I got caught out as well)

I think you answer may be best answered by Phil, but it tends not to crop up that often. The biggest "bug" is that people don't read the ribbon guide lines, and expect to add it to a user control or do whatever you like with it but you cannot.
vesuvius
 
Posts: 582
Joined: Thu Aug 16, 2007 8:38 pm
Location: Yorkshire, England

Re: Form.Height problem after minimize/restore

Postby -Sun- » Wed Nov 25, 2009 3:53 am

I tried what you described and still have the height problem.

Then i added a new "Krypton Ribbon Form", changed "AllowFormChrome" to "true", nothing else. Startet the testprogramm and still the height changes after minimize/restore. :(

So sorry, i am not a professionall developer, but i still have the problem and can not fix it.

So it looks for me that i MUST update to 4.1 and check if this still exists there :(
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Re: Form.Height problem after minimize/restore

Postby -Sun- » Wed Nov 25, 2009 4:13 am

Updated to 4.1, created a new project, added a "Krypton Ribbon Form" (standard is Office 2010 with AllowFormChrome = true), startet and height changes.

Dont know what i can do to not have this bug and cant beleave that it should be me the only one with this bug.
Greetings
Gerhard
-Sun-
 
Posts: 108
Joined: Fri Dec 26, 2008 2:30 pm
Location: Germany - Munich

Next

Return to Krypton Ribbon

Who is online

Users browsing this forum: No registered users and 0 guests

cron