Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Dynamic Control in Wizard.
Dynamic Control in Wizard. [message #462723] Tue, 18 October 2005 08:40 Go to next message
Eclipse UserFriend
Originally posted by: soniclee.ustc.edu

Hi everybody!

I have a wizard, and want to give it some dynamic properties.Then i met
two problem:

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!

Sonic
Re: Dynamic Control in Wizard. [message #462724 is a reply to message #462723] Tue, 18 October 2005 08:46 Go to previous messageGo to next message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
soniclee wrote:
> Hi everybody!
>
> I have a wizard, and want to give it some dynamic properties.Then i met
> two problem:
>
> 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?

From a usability standpoint: this is a very bad idea. Makes the whole
thing very jumpy and I personally find this very annoying. Stick to the
800*600 and redesign the wizard so that the space doesn't look so wasted.

> 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.

Try group.layout() or group.layout(boolean changed)

Regards
Stefan
Re: Dynamic Control in Wizard. [message #462767 is a reply to message #462724] Wed, 19 October 2005 01:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: soniclee.ustc.edu

The "layout" methord works.Thank you!
Re: Dynamic Control in Wizard. [message #462769 is a reply to message #462724] Wed, 19 October 2005 02:02 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
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.
Previous Topic:Browser Resolution
Next Topic:list and bold items
Goto Forum:
  


Current Time: Fri Apr 19 01:28:15 GMT 2024

Powered by FUDForum. Page generated in 0.02502 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top