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 |
From: Gary V. <gv...@br...> - 2004-11-12 18:30:31
|
Otto, 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 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. Thanks, 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 9:34 AM > To: wxc...@li... > Cc: gv...@br... > Subject: Re: [wxCode-users] EVT_ENTER_WINDOW on wxStaticText > > > > Gary Vernik (gv...@br...) wants to give feedback > for component: hyperlink > > > > I would like to use your wxHyperLink control. I noticed a > problem with it. I also noticed your post to > comp.soft-sys.wxwindows about this problem. Are there any > resolutions? What\'s the status? Are there any known workarounds? > > > So far nothing has changed, wxStaticText still doesn't handle ENTER > messages correct, at least not in wxWidgets 2.4. All you can do is ask > in the wx-dev mailing list about the 2.5. > > Please add a weblink (e.g. via Google groups) of my old comment in > comp.soft-sys.wxwindows to the message so it's easier to find it. > > 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 > |
From: Gary V. <gv...@br...> - 2004-11-13 01:15:11
Attachments:
hyperlink.cpp
hyperlink.h
|
>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 > |