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

Fabian Luque Fabian Luque <fabianluque@gmail.com>
Mon, 27 Sep 2004 16:10:50 -0300

n Mon, 27 Sep 2004 13:03:57 -0600, Peter Dennis Bartok
<peter@novonyx.com> wrote:
> I'm trying to understand when you need to know if the mouse is over the
> control. Is this a general 'It'd be cool to know so we can have some fun
> with themes' request, or a 'we cannot properly implement MS compatible
> controls' request?
> I'd be happy to add an internal overload with an additional bool that
> conveys mouse state, but I want to make sure that our controls by default
> behave like documented by MS, the drawing routines still need to implement
> popup as a mix of flat & standard, even with the flag added.
> I'll try and add the flag this afternoon.

In my case, it's a theme issue. In other controls' implementations,
like groupbox or progressbar, there's a reference to the object to be
draw passed to the drawing method in the theme, and all the drawing is
done inside the theme. But, in the case of the button, some primitives
calls are used to draw the button through the theme. In this case, a
flag could be useful to know the mouse state.

Fabian Luque

Fabian Luque