If you want to keep the current design, it may be nicer (quicker refresh), if you change the labels of things, rather than redraw the entire lot. Unless the layout changes per product? Ie. When creating menus, buttons, checkboxes etc, the first time, keep a reference to the actual created object around, maybe in a nice hash hierarchy, and when a different product is selected, go through the hash and update the text/variable/label properties of the objects.
If you can change the design, I'd suggest a top window that stays the same, even if it does just contain a menubar, and sub windows, or DialogBoxes (new top windows) for each product selected. That way also, your users can compare product data, should they ever want to ,) (And these subwindows you can destroy and redraw.. or just draw another one when another product is selected, and give each an explicit close button)
C.
In reply to Re: TK: rebuild entire main window, more elegant soln?
by castaway
in thread TK: rebuild entire main window, more elegant soln?
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |