mouse events

Can you give a simple working example? I cannot replicate the problem.
What is your wxPython version and platform?

Ricardo

···

On Tue, 2005-08-30 at 08:29 -0500, Rob Brooks wrote:

Yes, the interior controls have the events bound to them. When I bind other
mouse events such as EVT_LEFT_DOWN to them, everything works fine. It's
only with the EVT_ENTER_WINDOW and EVT_LEAVE_WINDOW events that it appears
that the control has to have focus *before* the control will recognize these
events.

It seems to be happening only with a wx.StaticText object. I've tried with
wx.Buttons and it works fine

My layout is a wx.Panel containing 2 wx.StaticText objects and a wx.Button

···

-----Original Message-----
From: Ricardo Pedroso [mailto:ricardo.pedroso@netvisao.pt]
Sent: Tuesday, August 30, 2005 9:32 AM
To: wxPython-users@lists.wxwidgets.org
Subject: RE: [wxPython-users] mouse events

On Tue, 2005-08-30 at 08:29 -0500, Rob Brooks wrote:

Yes, the interior controls have the events bound to them. When I bind

other

mouse events such as EVT_LEFT_DOWN to them, everything works fine. It's
only with the EVT_ENTER_WINDOW and EVT_LEAVE_WINDOW events that it appears
that the control has to have focus *before* the control will recognize

these

events.

Can you give a simple working example? I cannot replicate the problem.
What is your wxPython version and platform?

Ricardo

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Tuesday, August 30, 2005, 2:19:59 PM, Rob Brooks wrote:

It seems to be happening only with a wx.StaticText object. I've tried with
wx.Buttons and it works fine

wx.StaticText doesn't like EVT_ENTER_WINDOW and EVT_LEAVE_WINDOW
events. Try using wx.lib.stattext:

# Name: wx.lib.stattext
# Purpose: A generic wxGenStaticText class. Using this should
# eliminate some of the platform differences in wxStaticText,
# such as background colours and mouse sensitivity.

···

#
# Author: Robin Dunn

-- tacao

No bits were harmed during the making of this e-mail.