mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-26 09:56:32 +08:00
Improve wxListColumnFormat documentation
Don't document wxListColumnFormat as being MSW-only as it is supported
in the generic wxListCtrl version used under the other platforms since a
very long time, see e1e1272f20 (implemented support for column label
alignment (closes #19416), 2003-01-02), too.
Do mention that the first column is always left-aligned in the MSW
native control and document a workaround for creating non-left-aligned
first column.
See #24548.
This commit is contained in:
@@ -80,7 +80,7 @@ enum
|
||||
wxLIST_ALIGN_SNAP_TO_GRID
|
||||
};
|
||||
|
||||
/// Column format (MSW only except wxLIST_FORMAT_LEFT)
|
||||
/// Column format determining alignment of the items in the column.
|
||||
enum wxListColumnFormat
|
||||
{
|
||||
wxLIST_FORMAT_LEFT,
|
||||
@@ -359,6 +359,12 @@ public:
|
||||
column after all the existing ones without having to specify its
|
||||
position explicitly.
|
||||
|
||||
Note that under MSW the first column always uses left alignment due to
|
||||
the limitation of the underlying native control. If you need to use a
|
||||
different alignment for the first column, add a dummy column, then add
|
||||
another column with the desired alignment and finally call
|
||||
DeleteColumn() to remove the dummy one to achieve the desired result.
|
||||
|
||||
@since 2.9.4
|
||||
*/
|
||||
long AppendColumn(const wxString& heading,
|
||||
|
||||
Reference in New Issue
Block a user