- // event handlers
-
- // Renders the hyperlink.
- void OnPaint(wxPaintEvent& event);
-
- // Returns the wxRect of the label of this hyperlink.
- // This is different from the clientsize's rectangle when
- // clientsize != bestsize and this rectangle is influenced
- // by the alignment of the label (wxHL_ALIGN_*).
- wxRect GetLabelRect() const;
-
- // If the click originates inside the bounding box of the label,
- // a flag is set so that an event will be fired when the left
- // button is released.
- void OnLeftDown(wxMouseEvent& event);
-
- // If the click both originated and finished inside the bounding box
- // of the label, a HyperlinkEvent is fired.
- void OnLeftUp(wxMouseEvent& event);
- void OnRightUp(wxMouseEvent& event);
-
- // Changes the cursor to a hand, if the mouse is inside the label's
- // bounding box.
- void OnMotion(wxMouseEvent& event);
-
- // Changes the cursor back to the default, if necessary.
- void OnLeaveWindow(wxMouseEvent& event);
-
- // handles "Copy URL" menuitem
- void OnPopUpCopy(wxCommandEvent& event);
-
- // Refreshes the control to update label's position if necessary
- void OnSize(wxSizeEvent& event);
-
-
- // overridden base class virtuals