Minor corrections to wxSL_LABELS definition and documentation.
Use parentheses around the macro expansion to ensure that code like "whatever & ~wxSL_LABELS" still works as expected. Be more explicit in wxSL_LABELS description and mark wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL as being new in 2.9.1. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#define wxSL_INVERSE 0x1000
|
||||
#define wxSL_MIN_MAX_LABELS 0x2000
|
||||
#define wxSL_VALUE_LABEL 0x4000
|
||||
#define wxSL_LABELS wxSL_MIN_MAX_LABELS|wxSL_VALUE_LABEL
|
||||
#define wxSL_LABELS (wxSL_MIN_MAX_LABELS|wxSL_VALUE_LABEL)
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// obsolete
|
||||
|
@@ -24,11 +24,12 @@
|
||||
@style{wxSL_AUTOTICKS}
|
||||
Displays tick marks. Windows only.
|
||||
@style{wxSL_MIN_MAX_LABELS}
|
||||
Displays minimum, maximum labels.
|
||||
Displays minimum, maximum labels (new since wxWidgets 2.9.1).
|
||||
@style{wxSL_VALUE_LABEL}
|
||||
Displays value label.
|
||||
Displays value label (new since wxWidgets 2.9.1).
|
||||
@style{wxSL_LABELS}
|
||||
Displays minimum, maximum and value labels (same as the two above together).
|
||||
Displays minimum, maximum and value labels (same as wxSL_VALUE_LABEL
|
||||
and wxSL_MIN_MAX_LABELS together).
|
||||
@style{wxSL_LEFT}
|
||||
Displays ticks on the left and forces the slider to be vertical.
|
||||
@style{wxSL_RIGHT}
|
||||
|
Reference in New Issue
Block a user