Ludovic Aubert
2014-04-16 11:43:45 UTC
Hello,
I have following issue:
I have a dialog box where, using a wxBoxSizer having several sub wxBoxSizer
added to it, several controls are laid out.
It also has a combo (being one of the controls), and if this combo is
selected, the whole dialog might get rebuilt.
It is rebuilt simply by calling dialog->DestroyChildren(); and then the
sizers and the controls are created again and laid out.
It all works fine ... but ...
an interesting case is using a wxDialog having a wxScrolledWindow having
400 wxCheckBox.
wxDialog
|
+----> wxScrolledWindow
|
+------- wxCheckBox
|
+------- wxCheckBox
|
+------ ...
At dialog creation, the whole dialog is created in a flash, but on rebuild
it takes about 4 seconds,
as a single call to 'new wxCheckBox' takes in the order of 0.02 sec.
I think some nasty sizers are still hanging around and slowing things down,
but I am not sure and I don't know the easiest way to get rid of them
without to much iteration.
Any help appreciated
thanks in advance
Ludovic
I have following issue:
I have a dialog box where, using a wxBoxSizer having several sub wxBoxSizer
added to it, several controls are laid out.
It also has a combo (being one of the controls), and if this combo is
selected, the whole dialog might get rebuilt.
It is rebuilt simply by calling dialog->DestroyChildren(); and then the
sizers and the controls are created again and laid out.
It all works fine ... but ...
an interesting case is using a wxDialog having a wxScrolledWindow having
400 wxCheckBox.
wxDialog
|
+----> wxScrolledWindow
|
+------- wxCheckBox
|
+------- wxCheckBox
|
+------ ...
At dialog creation, the whole dialog is created in a flash, but on rebuild
it takes about 4 seconds,
as a single call to 'new wxCheckBox' takes in the order of 0.02 sec.
I think some nasty sizers are still hanging around and slowing things down,
but I am not sure and I don't know the easiest way to get rid of them
without to much iteration.
Any help appreciated
thanks in advance
Ludovic
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users