On 31/5/02 11:44 pm, "Kevin Ballard" <kevin at sb dot org> wrote:
> On 5/31/02 6:32 PM, "Mark Lewno" <mark_lewno at amx dot com> wrote:
>
>> I filed a Realbug on this one, but need a sanity check:
>>
>> I've got a subclassed canvas custom control.
>>
>> Like most controls I want the ability to control the highlight when the
>> mouse is down and the user moves in and out of the control (like a standard
>> pushbutton or checkbox).
>>
>> So..
>>
>> I have a state variable as a property of the control and had planned to
>> update this property based on mouse enter and mouse leave messages if the
>> mouse was down.
>>
>> The problem is this:
>>
>> If the mouse is down, the mouseleave message never fires. You can
>> completely leave the bounds of the control (the entire window for that
>> matter) and never get it.
>>
>> Yet when you then let go of the mouse button outside the bounds of the
>> control and THEN move the mouse, the exit message fires.
>>
>> It appears to me that having the mouse button down is blocking the normal
>> enter/exit messages from firing.
>>
>> Am I hallucinating, or is this a bug?
>
> I can't reproduce this bug. With 4.5a11, I made a subclassed canvas that
> displayed MouseEnter and MouseExit when those events fired, and I saw them
> firing at the correct time no matter what the state of the mouse was.
Did you return true in the MouseDown event though?
Regards.
--------
Chris Willis
chris at macest dot com
|