Use automatically generated ID values for wxPG sub-controls.
Currently in wxPG there are used fixed "magic" ID values to identify sub-controls and this can lead to side effects if these values overlap with ID values assigned to another controls in the application (like e.g. menu items). Closes #13634. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2181,7 +2181,7 @@ bool wxLongStringProperty::DisplayEditorDialog( wxPGProperty* prop, wxPropertyGr
|
||||
long edStyle = wxTE_MULTILINE;
|
||||
if ( prop->HasFlag(wxPG_PROP_READONLY) )
|
||||
edStyle |= wxTE_READONLY;
|
||||
wxTextCtrl* ed = new wxTextCtrl(dlg,11,value,
|
||||
wxTextCtrl* ed = new wxTextCtrl(dlg,wxID_ANY,value,
|
||||
wxDefaultPosition,wxDefaultSize,edStyle);
|
||||
|
||||
rowsizer->Add( ed, 1, wxEXPAND|wxALL, spacing );
|
||||
@@ -2870,7 +2870,7 @@ bool wxPGInDialogValidator::DoValidate( wxPropertyGrid* propGrid,
|
||||
if ( !tc )
|
||||
{
|
||||
{
|
||||
tc = new wxTextCtrl( propGrid, wxPG_SUBID_TEMP1, wxEmptyString,
|
||||
tc = new wxTextCtrl( propGrid, wxID_ANY, wxEmptyString,
|
||||
wxPoint(30000,30000));
|
||||
tc->Hide();
|
||||
}
|
||||
|
Reference in New Issue
Block a user