X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da2e758f83f62cf9ff3bed69aecb8fc00f2583df..148d83b59f6b0ad0d436305bdcb5c83489b19694:/interface/wx/treelist.h diff --git a/interface/wx/treelist.h b/interface/wx/treelist.h index dc8f4cc675..bace73cb6f 100644 --- a/interface/wx/treelist.h +++ b/interface/wx/treelist.h @@ -193,7 +193,7 @@ extern const wxTreeListItem wxTLI_LAST; the expansion of the given branch. This event is sent after the expansion occurs and can't be vetoed. @event{EVT_TREELIST_ITEM_CHECKED(id, func)} - Process @c wxEVT_COMMAND_TREELIST_ITEM_CHeCKED event notifying about + Process @c wxEVT_COMMAND_TREELIST_ITEM_CHECKED event notifying about the user checking or unchecking the item. You can use wxTreeListCtrl::GetCheckedState() to retrieve the new item state and wxTreeListEvent::GetOldCheckedState() to get the previous one. @@ -319,7 +319,9 @@ public: @param width The width of the column in pixels or the special wxCOL_WIDTH_AUTOSIZE value indicating that the column should adjust - to its contents. + to its contents. Notice that the first column is special and will + be always resized to fill all the space not taken by the other + columns, i.e. the width specified here is ignored for it. @param align Alignment of both the column header and its items. @param flags @@ -360,6 +362,9 @@ public: Set column width to either the given value in pixels or to the value large enough to fit all of the items if width is wxCOL_WIDTH_AUTOSIZE. + + Notice that setting the width of the first column is ignored as this + column is always resized to fill the space left by the other columns. */ void SetColumnWidth(unsigned col, int width); @@ -857,7 +862,7 @@ public: /** Return the previous state of the item checkbox. - This method can be used with @c wxEVT_COMMAND_TREELIST_ITEM_CHeCKED + This method can be used with @c wxEVT_COMMAND_TREELIST_ITEM_CHECKED events only. Notice that the new state of the item can be retrieved using @@ -883,5 +888,3 @@ public: */ #define wxTreeListEventHandler(func) \ wxEVENT_HANDLER_CAST(wxTreeListEventFunction, func) - -#endif // _WX_TREELIST_H_