|Dynamic Control in Wizard. [message #462723]
||Tue, 18 October 2005 04:40
Originally posted by: soniclee.ustc.edu|
I have a wizard, and want to give it some dynamic properties.Then i met
1. My wizard is composed of two wizard pages.The first one has a larger
size (800*600, e.g.) and the second has a small size(400*300, e.g.). But
when i enter the second page from the first one, the wizard's size is
still 800*600. So there are many blank area out of the page.
How can i let wizard change it's size to fit to the current wizard page?
2.In my second wizard page, there are some button and a Group composite to
display something. I want the group display different subcontrol when you
click different button.
But how can i remove the old control in the group and add others new, and
refresh to display them? I tried group.update(), but not work.
Thanks a lot!
|Re: Dynamic Control in Wizard. [message #462769 is a reply to message #462724]
||Tue, 18 October 2005 22:02
| Daniel Spiewak
Registered: July 2009
While I agree that resizing a wizard is normally bad from a usability standpoint, it is acceptable on some platforms. (Mac OS X for example) You can do it by resizing the Shell using the Shell#setSize(Point) method. I would caution you to do it as a sliding change rather than a jump. For instance, the Preferences of Cocoa applications on Mac OS X don't jump in size from 800x600 to 600x480, they gradually stretch or shrink to size. This makes it a bit better from a user's stand-point.
Powered by FUDForum
. Page generated in 0.02218 seconds