Fixed wxPGMultiButton (event handling, FinalizePosition() -> Finalize(), no longer using PG specific class macros in its sample), other editors.h interface fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2136,6 +2136,19 @@ wxPGMultiButton::wxPGMultiButton( wxPropertyGrid* pg, const wxSize& sz )
|
||||
SetBackgroundColour(pg->GetCellBackgroundColour());
|
||||
}
|
||||
|
||||
void wxPGMultiButton::Finalize( wxPropertyGrid* propGrid, const wxPoint& pos )
|
||||
{
|
||||
Move( pos.x + m_fullEditorSize.x - m_buttonsWidth, pos.y );
|
||||
|
||||
// Connect event handling
|
||||
for ( int i=0; i<GetCount(); i++ )
|
||||
{
|
||||
wxWindowID id = GetButtonId(i);
|
||||
propGrid->Connect(id, wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler(wxPropertyGrid::OnCustomEditorEvent));
|
||||
}
|
||||
}
|
||||
|
||||
int wxPGMultiButton::GenId( int id ) const
|
||||
{
|
||||
if ( id < -1 )
|
||||
|
Reference in New Issue
Block a user