Re: Re: Re: Re: [AD] minor fix

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> A has D_WANTMOUSE set, so it will keep
> the focus, even when B is clicked
> in the area where they overlap. But
> that's the opposite of what you were
> saying.. you wanted the little bits
> (B) to be clicked. That already
> happens with Allegro anyway - it loops
> through all dialogs any takes the
> topmost one.

No, I want the bottom one to have the
mouse, as the top one is just a simple
decoration: it draws stuff, but it is
only aesthetic (well, not really, but in
this example it doesn't matter).
With Allegro, as you say, it would also
take the mouse, which I don't want. I
mentionned non rectangular widgets as
it is a useful thing you can do with it
(and my actual widget is actually non
rectangular (it has a large "hole" in
the middle, where the map (the bottom
widget) shows)).

D_WANTMOUSE just tells the dialog player
that if any other widget lies over it,
then don't give it the mouse (except if
it also says D_WANTMOUSE).

My case is further complicated by the
fact that the decoration widget is also
clickable, but out of the map boundaries
(for scrolling) :) I shouldn't have
mentionned it, as it muddies the waters
quite a lot, sorry about that.

Vincent





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/