Document delayed effect of wxDataViewColumn::SetWidth() in wxGTK

It may be surprising that calling GetWidth() after SetWidth(100) still
returns 0, so at least document this behaviour (fixing it doesn't seem
to be easily possible).
This commit is contained in:
Vadim Zeitlin
2019-07-16 18:22:33 +02:00
parent 8ab9fed14e
commit 4c553c1db2

View File

@@ -2707,6 +2707,12 @@ enum wxDataViewColumnFlags
An instance of wxDataViewRenderer is used by this class to render its data.
@note In wxGTK, setting the width of the column doesn't happen immediately
when SetWidth() is called, but only slightly later and GetWidth() will
return the old width (0 initially) until this happens. If the column
widths are set before wxDataViewCtrl is initially shown, they will only
be effectively set when it becomes visible.
@library{wxcore}
@category{dvc}
*/