Layout being called when the mouse hovers over a button.

Topics related to the Krypton Navigator.

Moderators: Phil Wright, Chris Porter

Layout being called when the mouse hovers over a button.

Postby Nick Munday » Fri Aug 03, 2007 11:15 pm

For some reason, hovering the mouse over a button on a header causes multiple layout calls. Running 2.51 using Office 2007 Blue pallete.

The only reason I noticed was that the layout engine I wrote had a small defect which caused the panel to resize itself 1 pixel smaller on each layout. Hovering the mouse over the button caused the panel to start shrinking pixel by pixel.
Nick Munday
FDM Software
Nick Munday
 
Posts: 2
Joined: Fri Aug 03, 2007 10:56 pm
Location: Vancouver

Postby Phil Wright » Sun Aug 05, 2007 8:44 pm

Moving the mouse over the button will cause multiple layout events to occur. As the content of the button (the image, text and extra text) is drawn separately from the background and border it means moving the mouse can cause multiple layouts to occurs. This should not be a problem unless you have a bug in your layout code!
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia


Return to Krypton Navigator

Who is online

Users browsing this forum: No registered users and 1 guest