From: Gary V. <gv...@br...> - 2004-11-13 01:15:11
|
>The real solution would be > wxHyperLink is derived from wxControl. The wxStaticText is derived from wxControl but it doesn't receive the mouse events. How will deriving wxHyperLink from wxControl directly help us? I slightly changed your wxHyperLink control to derive from wxPanel. I am attaching the source files. Your comments are greatly appreciated. I tested the code a little bit on Windows and Linux. Seems to work. The only thing I noticed is that wxExecute starts shell and only then the browser on Linux. Is it how it is supposed to be? Thank you, Gary Vernik Sr. Software Engineer Host SW Group Brooktrout Technology 408-874-4014 > -----Original Message----- > From: Otto Wyss [mailto:ott...@or...] > Sent: Friday, November 12, 2004 11:36 AM > To: Gary Vernik > Cc: wxc...@li... > Subject: Re: [wxCode-users] EVT_ENTER_WINDOW on wxStaticText > > > 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=1 > 064929&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 > |