Fixed auto-resizing behavior when double-clicking a splitter; Added wxPropertyGrid::ResetColumnSizes(); wxPropertyGrid::GetSplitterPosition() got splitterIndex argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -735,11 +735,12 @@ public:
|
||||
|
||||
/**
|
||||
Centers the splitter.
|
||||
|
||||
If argument is true, automatic splitter centering is enabled (only
|
||||
applicapple if style wxPG_SPLITTER_AUTO_CENTER was defined).
|
||||
|
||||
@param enableAutoResizing
|
||||
If @true, automatic column resizing is enabled (only applicapple
|
||||
if window style wxPG_SPLITTER_AUTO_CENTER is used).
|
||||
*/
|
||||
void CenterSplitter( bool enable_auto_centering = false );
|
||||
void CenterSplitter( bool enableAutoResizing = false );
|
||||
|
||||
/** Deletes all properties.
|
||||
*/
|
||||
@@ -937,9 +938,13 @@ public:
|
||||
/** Returns current selection text colour. */
|
||||
wxColour GetSelectionForegroundColour() const { return m_colSelFore; }
|
||||
|
||||
/** Returns current splitter x position. */
|
||||
int GetSplitterPosition() const
|
||||
{ return m_pState->DoGetSplitterPosition(0); }
|
||||
/**
|
||||
Returns current splitter x position.
|
||||
*/
|
||||
int GetSplitterPosition( unsigned int splitterIndex = 0 ) const
|
||||
{
|
||||
return m_pState->DoGetSplitterPosition(splitterIndex);
|
||||
}
|
||||
|
||||
/** Returns wxTextCtrl active in currently selected property, if any. Takes
|
||||
into account wxOwnerDrawnComboBox.
|
||||
@@ -1021,6 +1026,17 @@ public:
|
||||
*/
|
||||
void ResetColours();
|
||||
|
||||
/**
|
||||
Resets column sizes and splitter positions, based on proportions.
|
||||
|
||||
@param enableAutoResizing
|
||||
If @true, automatic column resizing is enabled (only applicapple
|
||||
if window style wxPG_SPLITTER_AUTO_CENTER is used).
|
||||
|
||||
@see wxPropertyGridInterface::SetColumnProportion()
|
||||
*/
|
||||
void ResetColumnSizes( bool enableAutoResizing = false );
|
||||
|
||||
/**
|
||||
Selects a property.
|
||||
Editor widget is automatically created, but not focused unless focus is
|
||||
|
Reference in New Issue
Block a user