projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pass wxWANTS_CHARS to the wxRichTextCtrl constructor in the unit tests.
[wxWidgets.git]
/
interface
/
wx
/
hyperlink.h
diff --git
a/interface/wx/hyperlink.h
b/interface/wx/hyperlink.h
index 044604e725701acfe8c9c1824a6a0b24dd0e193d..43ece1b659033de7a205b8ab999e3cef47b23d39 100644
(file)
--- a/
interface/wx/hyperlink.h
+++ b/
interface/wx/hyperlink.h
@@
-3,9
+3,15
@@
// Purpose: interface of wxHyperlinkEvent
// Author: wxWidgets team
// RCS-ID: $Id$
// Purpose: interface of wxHyperlinkEvent
// Author: wxWidgets team
// RCS-ID: $Id$
-// Licence: wxWindows licen
s
e
+// Licence: wxWindows licen
c
e
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+#define wxHL_CONTEXTMENU 0x0001
+#define wxHL_ALIGN_LEFT 0x0002
+#define wxHL_ALIGN_RIGHT 0x0004
+#define wxHL_ALIGN_CENTRE 0x0008
+#define wxHL_DEFAULT_STYLE (wxHL_CONTEXTMENU|wxNO_BORDER|wxHL_ALIGN_CENTRE)
+
/**
@class wxHyperlinkEvent
/**
@class wxHyperlinkEvent
@@
-39,11
+45,13
@@
public:
};
};
+wxEventType wxEVT_COMMAND_HYPERLINK;
/**
@class wxHyperlinkCtrl
This class shows a static text element which links to an URL.
/**
@class wxHyperlinkCtrl
This class shows a static text element which links to an URL.
+
Appearance and behaviour is completely customizable.
In fact, when the user clicks on the hyperlink, a wxHyperlinkEvent is
Appearance and behaviour is completely customizable.
In fact, when the user clicks on the hyperlink, a wxHyperlinkEvent is
@@
-58,9
+66,11
@@
public:
@style{wxHL_ALIGN_LEFT}
Align the text to the left.
@style{wxHL_ALIGN_RIGHT}
@style{wxHL_ALIGN_LEFT}
Align the text to the left.
@style{wxHL_ALIGN_RIGHT}
- Align the text to the right.
+ Align the text to the right. This style is not supported under
+ Windows XP but is supported under all the other Windows versions.
@style{wxHL_ALIGN_CENTRE}
@style{wxHL_ALIGN_CENTRE}
- Center the text (horizontally).
+ Center the text (horizontally). This style is not supported by the
+ native MSW implementation used under Windows XP and later.
@style{wxHL_CONTEXTMENU}
Pop up a context menu when the hyperlink is right-clicked. The
context menu contains a "Copy URL" menu item which is automatically
@style{wxHL_CONTEXTMENU}
Pop up a context menu when the hyperlink is right-clicked. The
context menu contains a "Copy URL" menu item which is automatically
@@
-78,16
+88,21
@@
public:
is done with the hyperlink's URL.
@endEventTable
is done with the hyperlink's URL.
@endEventTable
+ Currently this class is implemented using native support in wxGTK and wxMSW
+ (under Windows XP and later only) and a generic version is used by the
+ other ports.
@library{wxadv}
@category{ctrl}
@library{wxadv}
@category{ctrl}
- @appearance{hyperlinkctrl
.png
}
+ @appearance{hyperlinkctrl}
@see wxURL, wxHyperlinkEvent
*/
class wxHyperlinkCtrl : public wxControl
{
public:
@see wxURL, wxHyperlinkEvent
*/
class wxHyperlinkCtrl : public wxControl
{
public:
+ wxHyperlinkCtrl();
+
/**
Constructor. See Create() for more info.
*/
/**
Constructor. See Create() for more info.
*/