Fixed an updating problem
This commit is contained in:
parent
89f25edc5d
commit
3ad1790076
|
@ -105,11 +105,7 @@ void InsertPanel::update (
|
||||||
for ( it = entitySet.begin(); it != entitySet.end(); ++it )
|
for ( it = entitySet.begin(); it != entitySet.end(); ++it )
|
||||||
list->Append ( *it );
|
list->Append ( *it );
|
||||||
list->Show ( true );
|
list->Show ( true );
|
||||||
#if wxCHECK_VERSION(2,9,0)
|
|
||||||
list->Update();
|
|
||||||
#else
|
|
||||||
sizer->Layout();
|
sizer->Layout();
|
||||||
#endif
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,11 +138,7 @@ void InsertPanel::update (
|
||||||
for ( it = elementSet.begin(); it != elementSet.end(); ++it )
|
for ( it = elementSet.begin(); it != elementSet.end(); ++it )
|
||||||
list->Append ( *it );
|
list->Append ( *it );
|
||||||
list->Show ( true );
|
list->Show ( true );
|
||||||
#if wxCHECK_VERSION(2,9,0)
|
|
||||||
list->Update();
|
|
||||||
#else
|
|
||||||
sizer->Layout();
|
sizer->Layout();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void InsertPanel::OnEnter ( wxCommandEvent& event )
|
void InsertPanel::OnEnter ( wxCommandEvent& event )
|
||||||
|
|
|
@ -90,11 +90,7 @@ void LocationPanel::update (
|
||||||
structureEdit->SetReadOnly ( false );
|
structureEdit->SetReadOnly ( false );
|
||||||
structureEdit->SetText ( structure );
|
structureEdit->SetText ( structure );
|
||||||
structureEdit->SetReadOnly ( true );
|
structureEdit->SetReadOnly ( true );
|
||||||
#if wxCHECK_VERSION(2,9,0)
|
|
||||||
structureEdit->Update();
|
|
||||||
#else
|
|
||||||
sizer->Layout();
|
sizer->Layout();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue