wxStaticText GTK woes

Peter Gordon peter at pg-consultants.com
Mon Jan 1 23:08:58 PST 2007


I have subclassed wxStaticText and have a class MyStaticText. I want to
know when the cursor enters or exists the window. There are two options
- either I can use EVT_MOUSE_EVENTS and check for Entering and Leaving,
or I can use EVT_ENTER_WINDOW and EVT_LEAVE_WINDOW.

On Windows it works either way. On GTK2, I can detect movement, but
Entering and Leaving are always false, and I never get an ENTER or LEAVE
event.

Is there a workaround on GTK2?

A second problem I have is that I want the text to appear underlined. I
use font.SetUnderlined(true) to set the font. Again, on Windows it works
but on GTK2 there is no underlining. Again, any advice would be
appreciated.

I am using wxWidgets 2.6.3.

Thanks,

Peter






More information about the wx-users mailing list