[Mono-winforms-list] Radiobutton Windows Look and Feel Issues: Take 2

Peter Dennis Bartok peter@novonyx.com
Mon, 27 Sep 2004 12:24:11 -0600

Ok, I did some more research, I wasn't sure if just remembered wrong how 
Popup was supposed to work:

>From the MS documentation on FlatStyle:

"In the case of the Popup style button, this enumeration controls some 
behavior as well as appearance. The Popup style control initially appears 
Flat until the mouse pointer moves over it. When the mouse pointer moves 
over the Popup control, it appears as a Standard style control until the 
mouse pointer is moved off of it again."
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsflatstyleclasstopic.asp ]

This means that any control implementing 'FlatStyle.Popup' should use the 
'ButtonState.Flat' flag in the drawing code for the 'Popup' style when the 
mouse is not on the control, and it should use 'ButtonState.Normal' when the 
mouse is in the control.

Please let me know if I misunderstood the problems (very well possible) or 
if this does take care of things.


-----Original Message-----
From: "Fabian Luque" <fabianluque@gmail.com>
To: <mono-winforms-list@ximian.com>
Date: 27 September, 2004 11:28
Subject: Re: [Mono-winforms-list] Radiobutton Windows Look and Feel Issues: 
Take 2

>> 2) The button rendering never passes in any hover state information.
>> This is needed since the FlatStyle.Popup needs to render the popup state
>> when the mouse hovers over it.
>> Sorry for getting so "needy" on this, it's my first MWF control and all,
>> but this sounds like a common issue for all controls.
>Well, I also had these issues when implementing the XP Theme. I think
>some work needs to be done in the theme class to support these
>Fabian Luque
>Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com