From: Otto W. <ott...@or...> - 2004-11-12 19:35:46
|
Gary Vernik wrote: > > I logged a bug against the wxWindows at the same time as I've sent you an > email. Here it is: > https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1064929&group_i > d=9863 > I've seen it. > The feedback I received is: > On Linux, the native widget doesn't generate the events and > as such it is impossible to generate such events. Put the > static text control on a panel and catch the events in the > panel. > > Apparently the developers on wxWindows project are not considering this to > be an issue. As such, I don't expect it to gain any attention or to be > fixed. > > I'd appreciate any advice/suggestion you can make. > Yes, that's an answer we have to live with. Anyway using a panel might work but is IMO a rather worse hack. The real solution would be wxHyperLink is derived from wxControl. But that means OnPaint, etc. have to be written like any ordinary custom control. It might be possible to look at the code of the wxStaticText from wxUniv which should not be based on any native control. I don't have the time to do this myself, so you either someone else does it or look around on the web for a better solution. O. Wyss -- Development of frame buffer drivers: http://linux-fbdev.sf.net Sample code snippets for wxWidgets: http://wxcode.sf.net How to build well-designed applications: http://wxguide.sf.net Desktop with a consistent look and feel: http://wyodesktop.sf.net |