class HyperlinkLabel : public Label { public: HyperlinkLabel() { NoIgnoreMouse(); SetInk(LtBlue()); } HyperlinkLabel& SetHyperlink(const char* str) {hyperlink = str; return *this;} private: String hyperlink; virtual Image CursorImage(Point p, dword keyflags) {return Image::Hand();} virtual void LeftDown(Point p, dword keyflags) {LaunchWebBrowser(hyperlink);} };
Report message to a moderator