![]() |
wxIScan
|
A (slightly) extended html window class. More...
#include <wxiscanabout.h>
Public Member Functions | |
wxLinkInBrowserHtmlWindow (wxWindow *poParent, wxWindowID nId=wxID_ANY, const wxPoint &oPos=wxDefaultPosition, const wxSize &oSize=wxDefaultSize, long nStyle=wxHW_DEFAULT_STYLE, const wxString &strName=wxT("wxLinkInBrowserHtmlWindow")) | |
Standard constructor copied from wxHtmlWindow. | |
Private Member Functions | |
void | OnLinkClicked (wxHtmlLinkEvent &oEvent) |
Handler for clicking on a link events. |
A (slightly) extended html window class.
It extends wxHtmlWindow in the way that clicks on links are caught and an external browser is started with the link instead of onpening the link in the html window itself.
Definition at line 82 of file wxiscanabout.h.
wxLinkInBrowserHtmlWindow::wxLinkInBrowserHtmlWindow | ( | wxWindow * | poParent, |
wxWindowID | nId = wxID_ANY , |
||
const wxPoint & | oPos = wxDefaultPosition , |
||
const wxSize & | oSize = wxDefaultSize , |
||
long | nStyle = wxHW_DEFAULT_STYLE , |
||
const wxString & | strName = wxT( "wxLinkInBrowserHtmlWindow" ) |
||
) | [inline] |
Standard constructor copied from wxHtmlWindow.
poParent | a pointer to the parent window |
nId | the window id, defaults to wxID_ANY |
oPos | the window position on the screen, defaults to wxDefaultPosition |
oSize | the window size, defaults to wxDefaultSize |
nStyle | the (html) window style, defaults to wxHW_DEFAULT_STYLE |
strName | the class name, defaults to "wxLinkInBrowserHtmlWindow" |
Definition at line 93 of file wxiscanabout.h.
: wxHtmlWindow( poParent, nId, oPos, oSize, nStyle, strName ) { }
void wxLinkInBrowserHtmlWindow::OnLinkClicked | ( | wxHtmlLinkEvent & | oEvent | ) | [inline, private] |
Handler for clicking on a link events.
It passes the link to an external browser (the system's default browser). This prevents the html window (e. g. an about dialog) to show the linked page itself.
Definition at line 111 of file wxiscanabout.h.
{ ::wxLaunchDefaultBrowser( oEvent.GetLinkInfo().GetHref() ); }