minor tweaks to alignment styles documentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,21 +18,14 @@
|
|||||||
support in wxButton.
|
support in wxButton.
|
||||||
|
|
||||||
@beginStyleTable
|
@beginStyleTable
|
||||||
@style{wxBU_AUTODRAW}
|
|
||||||
If this is specified, the button will be drawn automatically using
|
|
||||||
the label bitmap only, providing a 3D-look border. If this style is
|
|
||||||
not specified, the button will be drawn without borders and using
|
|
||||||
all provided bitmaps. Has effect only under MS Windows.
|
|
||||||
@style{wxBU_LEFT}
|
@style{wxBU_LEFT}
|
||||||
Left-justifies the bitmap label. Has effect only under MS Windows.
|
Left-justifies the bitmap label.
|
||||||
@style{wxBU_TOP}
|
@style{wxBU_TOP}
|
||||||
Aligns the bitmap label to the top of the button.
|
Aligns the bitmap label to the top of the button.
|
||||||
Has effect only under MS Windows.
|
|
||||||
@style{wxBU_RIGHT}
|
@style{wxBU_RIGHT}
|
||||||
Right-justifies the bitmap label. Has effect only under MS Windows.
|
Right-justifies the bitmap label.
|
||||||
@style{wxBU_BOTTOM}
|
@style{wxBU_BOTTOM}
|
||||||
Aligns the bitmap label to the bottom of the button.
|
Aligns the bitmap label to the bottom of the button.
|
||||||
Has effect only under MS Windows.
|
|
||||||
@endStyleTable
|
@endStyleTable
|
||||||
|
|
||||||
Note that the wxBU_EXACTFIT style supported by wxButton is not used by this
|
Note that the wxBU_EXACTFIT style supported by wxButton is not used by this
|
||||||
|
@@ -31,6 +31,14 @@
|
|||||||
Creates a flat button. Windows and GTK+ only.
|
Creates a flat button. Windows and GTK+ only.
|
||||||
@endStyleTable
|
@endStyleTable
|
||||||
|
|
||||||
|
By default, i.e. if none of the alignment styles are specified, the label
|
||||||
|
is centered both horizontally and vertically. If the button has both a
|
||||||
|
label and a bitmap, the alignment styles above specify the location of the
|
||||||
|
rectangle combining both the label and the bitmap and the bitmap position
|
||||||
|
set with wxButton::SetBitmapPosition() defines the relative position of the
|
||||||
|
bitmap with respect to the label (however currently non-default alignment
|
||||||
|
combinations are not implemented on all platforms).
|
||||||
|
|
||||||
@beginEventEmissionTable{wxCommandEvent}
|
@beginEventEmissionTable{wxCommandEvent}
|
||||||
@event{EVT_BUTTON(id, func)}
|
@event{EVT_BUTTON(id, func)}
|
||||||
Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked.
|
Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is clicked.
|
||||||
|
Reference in New Issue
Block a user