Added wxPropertyGridInterface::SetColumnProportion(); wxPG_SPLITTER_AUTO_CENTER window style now supports column counts higher than two.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -150,8 +150,12 @@ wxPG_ALPHABETIC_MODE = (wxPG_HIDE_CATEGORIES|wxPG_AUTO_SORT),
|
||||
*/
|
||||
wxPG_BOLD_MODIFIED = 0x00000040,
|
||||
|
||||
/** When wxPropertyGrid is resized, splitter moves to the center. This
|
||||
behavior stops once the user manually moves the splitter.
|
||||
/** Using this style, the column splitters move automatically based on column
|
||||
proportions (default is equal proportion for every column). This behavior
|
||||
stops once the user manually moves a splitter, and returns when a
|
||||
splitter is double-clicked.
|
||||
|
||||
@see wxPropertyGridInterface::SetColumnProportion().
|
||||
*/
|
||||
wxPG_SPLITTER_AUTO_CENTER = 0x00000080,
|
||||
|
||||
|
@@ -861,6 +861,18 @@ public:
|
||||
static void SetBoolChoices( const wxString& trueChoice,
|
||||
const wxString& falseChoice );
|
||||
|
||||
/**
|
||||
Set proportion of a auto-stretchable column. wxPG_SPLITTER_AUTO_CENTER
|
||||
window style needs to be used to indicate that columns are auto-
|
||||
resizeable.
|
||||
|
||||
@returns Returns @false on failure.
|
||||
|
||||
@remarks You should call this for individual pages of
|
||||
wxPropertyGridManager (if used).
|
||||
*/
|
||||
bool SetColumnProportion( unsigned int column, int proportion );
|
||||
|
||||
/** Sets an attribute for this property.
|
||||
@param name
|
||||
Text identifier of attribute. See @ref propgrid_property_attributes.
|
||||
|
@@ -547,6 +547,8 @@ public:
|
||||
|
||||
void DoRemoveFromSelection( wxPGProperty* prop );
|
||||
|
||||
void DoSetColumnProportion( unsigned int column, int proportion );
|
||||
|
||||
wxPropertyCategory* GetPropertyCategory( const wxPGProperty* p ) const;
|
||||
|
||||
wxPGProperty* GetPropertyByLabel( const wxString& name,
|
||||
@@ -704,6 +706,9 @@ protected:
|
||||
/** List of indices of columns the user can edit by clicking it. */
|
||||
wxArrayInt m_editableColumns;
|
||||
|
||||
/** Column proportions */
|
||||
wxArrayInt m_columnProportions;
|
||||
|
||||
double m_fSplitterX;
|
||||
|
||||
/** Most recently added category. */
|
||||
|
Reference in New Issue
Block a user