[Mono-winforms-list] Radiobutton Windows Look and Feel
Tue, 28 Sep 2004 08:46:16 +1000
So does this mean I should hold off making my
changes to the radio button rednering untill
after the theme API changes have changed?
Can you suggest any other areas that need to be
looked at in the man time?
> Peter Dennis Bartok <firstname.lastname@example.org> wrote:
> Thanks for the detailed explanation. I'm
reworking the theme APIs right
> and we're going to pass the control object
itself to the each theme
> function, instead of having a bunch of
arguments and we'll do this for
> controls. I'm fixing up the existing controls
to follow this.
> This should allow to solve the problems with
FlatStyle.Popup and also
> to better support 'special' themes that need
access to other control
> -----Original Message-----
> From: "John BouAntoun" <email@example.com>
> To: "Peter Dennis Bartok" <firstname.lastname@example.org>
> Date: 27 September, 2004 15:32
> Subject: Re: [Mono-winforms-list] Radiobutton
Windows Look and Feel
> Issues:Take 2
> >AS far as the documentation goes, you're spot on.
> >But as for actual behaviour...
> >FlatStyle.Flat renders a ControlText colored
circle filled with white.
> >FlatStyle.Popup renders a ControlDark colored
circle filled with
> >When hovered over, FlatStyle.Popup only
renders the inner arcs of the
> >shadow as if it where normal, the outer circle
is still renderd as a
> >ControlDark Colored circle.
> >So it seems to me that we ultimately need to
know that a button being
> >rendered is flatstyle.popup. Unless we render
the light shaded circle
> >after the ControlPaint is called, inside the
button's redraw iff it is
> >FlatStyle.Popup I don't see how else to do it
without being to pass in
> >this extra information about the FlatStyle to
> >Am I making sense?
> >On Tue, 2004-09-28 at 04:24, Peter Dennis
> >> Ok, I did some more research, I wasn't sure
if just remembered wrong
> >> Popup was supposed to work:
> >> >From the MS documentation on FlatStyle:
> >> "In the case of the Popup style button, this
> >> behavior as well as appearance. The Popup
style control initially
> >> Flat until the mouse pointer moves over it.
When the mouse pointer
> >> over the Popup control, it appears as a
Standard style control until
> >> mouse pointer is moved off of it again."
> >> [
> >> This means that any control implementing
> use the
> >> 'ButtonState.Flat' flag in the drawing code
for the 'Popup' style
> >> the
> >> mouse is not on the control, and it should
> >> the
> >> mouse is in the control.
> >> Please let me know if I misunderstood the
problems (very well
> >> or
> >> if this does take care of things.
> >> Cheers,
> >> Peter
> >> -----Original Message-----
> >> From: "Fabian Luque" <email@example.com>
> >> To: <firstname.lastname@example.org>
> >> 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
> >> >> This is needed since the FlatStyle.Popup
needs to render the
> >> >> state
> >> >> when the mouse hovers over it.
> >> >
> >> >> Sorry for getting so "needy" on this,
it's my first MWF control
> >> >> all,
> >> >> but this sounds like a common issue for
> >> >
> >> >Well, I also had these issues when
implementing the XP Theme. I
> >> >some work needs to be done in the theme
class to support these
> >> >features.
> >> >
> >> >--
> >> >Fabian Luque
> >> >http://fluque.blogspot.com
> >> >_______________________________________________
> >> >Mono-winforms-list maillist -
> >> >
> >> >
> >> _______________________________________________
> >> Mono-winforms-list maillist -
> Mono-winforms-list maillist -