Hyperlink-like text area class (owner-drawn button). More...
#include <LicenseDlg.h>
Inherits ADMButton.

Public Member Functions | |
| ADMLinkButton (const char *pText, const char *pURL="") | |
| virtual void | ConnectToControl (ADMItemRef control, unsigned int uFlags=CFNotify) |
| Calls base class function after adding the owner-drawn flag. | |
| void | SetURL (const std::string &sURL) |
| Sets the URL to open. | |
Protected Member Functions | |
| virtual void | OnDraw (ADMDrawerRef inDrawer) |
| Called to draw the button. | |
| virtual bool | OnClick () |
| Called when the button is clicked; opens the URL (if not empty). | |
Protected Attributes | |
| std::string | m_sText |
| Text to display. | |
| std::string | m_sURL |
| URL to open (can be empty). | |
Hyperlink-like text area class (owner-drawn button).
Definition at line 36 of file LicenseDlg.h.
| ADMLinkButton::ADMLinkButton | ( | const char * | pText, | |
| const char * | pURL = "" | |||
| ) | [inline] |
| pText | Text to display as the link | |
| pURL | URL to open when clicked (defaults to empty, in which case the button will appear disabled) |
Definition at line 44 of file LicenseDlg.h.
| virtual void ADMLinkButton::ConnectToControl | ( | ADMItemRef | control, | |
| unsigned int | uFlags = CFNotify | |||
| ) | [inline, virtual] |
Calls base class function after adding the owner-drawn flag.
| control | ADM control reference for the button | |
| uFlags | Connection flags |
Reimplemented from ADMBaseControl.
Definition at line 53 of file LicenseDlg.h.
| bool ADMLinkButton::OnClick | ( | ) | [protected, virtual] |
Called when the button is clicked; opens the URL (if not empty).
Implements ADMButton.
Definition at line 33 of file LicenseDlg.cpp.
References ADMBaseControl::m_refItem, and m_sURL.
| void ADMLinkButton::OnDraw | ( | ADMDrawerRef | inDrawer | ) | [protected, virtual] |
Called to draw the button.
| inDrawer | ADM drawer object |
Reimplemented from ADMBaseControl.
Definition at line 49 of file LicenseDlg.cpp.
| void ADMLinkButton::SetURL | ( | const std::string & | sURL | ) | [inline] |
Sets the URL to open.
| sURL | The URL to open |
Definition at line 68 of file LicenseDlg.h.
References m_sURL.
Referenced by LicenseDialog::UpdateLicenseInfo().
1.6.1