Well, this might be good if it somewhat glues together the differences between Win32 and…
Show quoted text 9 lines
It does/will
Show quoted text 11 lines
ah, yes.
2. Children controls, as well as parent will have to be informed of that (which is automatic, but still it is a overhead), some of them being destroyed along the way (unless someone rewrites the GTK libs).
You are right, all child windows are re-created too (automatically of course)
3. You have to remember most of the properties and then re-assign them, which is NOT automatic.
As you say.
Show quoted text 8 lines
This is how Delphi does it
Show quoted text 6 lines
It is usually only properties that affect the fundamental appearance that cause a re-createwnd - it actually rarely happens. Changing border does it for one, but we MUST support this for other reasons: It should be possible to remove a TListBox so it has no parent, and then assign it to a parent in ANOTHER FORM and still keep it's contents.
Again, I am talking about GTK, not Win32. So the best solution for RecreateWnd for GTK would be to be ignored.
RecreateWnd itself will not be needed for GTK, but the things it uses to do its tricks will be needed, as in above about moving listbox to another form. But its just donky work, nothing difficult about it. And the slow-down only occurs when it is used - rarely but when it is used it is needed and a work-around would be even worse. I will manage/check this if you want.
Sam
