|
Public Member Functions |
| wxHyperlinkCtrl (wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int style=0, const wxString &name=wxT("staticText"), const wxString &szURL=wxEmptyString) |
| wxHyperlinkCtrl constructor
|
void | SetColours (const wxColour &link=wxColour(wxT("BLUE")), const wxColour &visited=wxColour(wxT("VIOLET")), const wxColour &rollover=wxColour(wxT("BLUE"))) |
void | GetColous (wxColour &link, wxColour &visited, wxColour &rollover) |
void | SetUnderlines (const bool link=true, const bool visited=true, const bool rollover=true) |
void | GetUnderlines (bool link, bool visited, bool rollover) |
void | SetLinkCursor (const wxCursor &cur=wxCURSOR_HAND) |
void | GetLinkCursor (wxCursor &cur) |
void | SetVisited (const bool bVisited=false) |
bool | GetVisited (void) |
void | SetBold (const bool bBold=false) |
bool | GetBold (void) |
void | SetURL (const wxString &szURL) |
wxString | GetURL (void) |
void | OpenInSameWindow (const bool bIfPossible=false) |
void | SetBrowserPath (const wxString &browser) |
wxString | GetBrowserPath (void) |
void | EnableRollover (const bool bEnable=false) |
void | ReportErrors (const bool bReport=true) |
void | AutoBrowse (const bool bBrowse=true) |
void | DoPopup (const bool bPopup=true) |
void | UpdateLink (const bool bRefresh=true) |
| Updates the links colors and underline properties.
|
Static Public Member Functions |
static bool | GotoURL (const wxString &szUrl, const wxString &szBrowser=wxEmptyString, const bool bReportErrors=false, const bool bSameWinIfPossible=false) |
| Goto the specified URL. This function may be called statically. bSameWindowIfPossible only works with Internet Explorer.
|
Private Member Functions |
void | OnPopUpCopy (wxCommandEvent &event) |
| Menu pop up copy to clipboard event.
|
void | OnMouseEvent (wxMouseEvent &event) |
| Captures mouse events for Cursor, Link colors and Underlines.
|
Static Private Member Functions |
static void | DisplayError (const wxString &szError, const bool bReportErrors) |
Private Attributes |
wxString | m_szURL |
wxString | m_szBrowserPath |
wxColour | m_crLinkColour |
wxColour | m_crVisitedColour |
wxColour | m_crLinkRolloverColor |
bool | m_bLinkUnderline |
bool | m_bRolloverUnderline |
bool | m_bVisitedUnderline |
bool | m_bEnableRollover |
bool | m_bVisited |
bool | m_bBold |
wxCursor | m_crHand |
bool | m_bReportErrors |
bool | m_bAutoBrowse |
bool | m_bDoPopup |
bool | m_bSameWinIfPossible |
wxMenu * | m_menuPopUp |