Krypton Form HeaderStyle Primary Issue

Topics related to the Krypton Toolkit.

Moderators: Phil Wright, Chris Porter

Krypton Form HeaderStyle Primary Issue

Postby greyseal53 » Sat Dec 03, 2011 2:44 am

Hello all...!

First, let me say that I think that the Krypton Toolkit is pretty awesome. I've been able to get a really pro look and feel for my app despite having no budget for 3rd party tools (tough economic times all round, eh?).

That said, I am having an issue with the Krypton Form when its HeaderStyle is set to Primary. In design, when I set the property, the form appears to lose the title/header area. If I close the form and reopen it in the designer, it appears correct. Upon running the app (debug or release builds) the initial form appears sans the header. If I force a repaint by resizing or minimizing/maximizing the form everything appears right.

I've added/removed the Invalidate() method in the Form_Shown event as well as PerformNeedPaint(true). I've tried setting the HeaderStyle in code instead of setting the form property. Finally, I've searched the forum for topics that may be relevant but haven't really found anything specific to this topic which makes me feel that it's something that I've overlooked. I've attached some screen captures that illustrate the behavior.

Any pointers in the right direction are appreciated!
Attachments
Form after forced repaint.PNG
Form after I force a repaint
Form after forced repaint.PNG (129.06 KiB) Viewed 738 times
Initial Form Load.PNG
Form as it appears upon initial load
Initial Form Load.PNG (140.56 KiB) Viewed 738 times
Designer View.PNG
Form in designer after setting HeaderStyle to Primary
Designer View.PNG (88.27 KiB) Viewed 738 times
greyseal53
 
Posts: 3
Joined: Sat Dec 03, 2011 1:59 am

Re: Krypton Form HeaderStyle Primary Issue

Postby ghaberek » Thu Dec 29, 2011 7:20 am

From what I can tell, a KryptonForm only supports the "Form" HeaderStyle - anything else produces the effect you're seeing. In fact, on my system it breaks immediately in the designer and the header area seems to "collapse" on itself. I'm not sure if this is a bug or not.

What exactly are you trying to accomplish by using the "Primary" style instead? Just change the look-and-feel?
ghaberek
 
Posts: 10
Joined: Wed Jul 27, 2011 6:36 am

Re: Krypton Form HeaderStyle Primary Issue

Postby greyseal53 » Thu Feb 23, 2012 7:04 am

ghaberek,

Yeah, it's pretty much just a look-and-feel thing. I'm going with the "Form" HeaderStyle to move on with the project. I get the sense that Phil isn't going to have time (or the financial incentive) to spare on tweaking the odds and ends that crop up. I've started a (short) list of items I've run across to keep the team from thrashing which includes this issue, the KryptonMessageBox truncation issue, and a new one I've run across with icons on child forms not displaying correctly unless the MDI parent is forced to repaint.

That said, this is still a pretty awesome set of tools for WinForms development particularly given the price...! :D

Thanks for the reply!

greyseal53
greyseal53
 
Posts: 3
Joined: Sat Dec 03, 2011 1:59 am


Return to Krypton Toolkit

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest