Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Wizard Page Wierdness
Wizard Page Wierdness [message #466076] Fri, 30 December 2005 20:58 Go to next message
Joe Mihalich is currently offline Joe MihalichFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

I don't know if this should be categorized as a bug, since I don't
know the
intended behavior. But I just spent a day debugging why controls on one
of
my wizard pages was being cut off at the bottom. Here is what I found.

Let's take this given setup:

Wizard Page 1: has a group control, with a couple of radio buttons in
it.
The constructor of this page does something like this:
setTitle("First wizard page");
setDescription(""); //This is the start of the problem
setImageDescriptor(getImageDescriptor(TestWizardPage.class,
"/com/mwvis/im/images/toolbar/newinventoryalert.gif"));

Wizard Page 2: has a group control with a few radio buttons, and a
group control below it (Page has a Grid Layout, with one column)
which has a bunch of controls that add a lot
of height to the total wizard dialog size.

The constructor of this page does something like this:
setTitle("Second wizard page");
//NOTE: No call to setDescription here. This is the was
finishes me off
setImageDescriptor(getImageDescriptor(TestWizardPage.class,
"/com/mwvis/im/images/toolbar/newinventoryalert.gif"));

When I click next on page 1, and go to page 2, about 20 pixels of
height in the botton group control are clipped. (That is, they are sitting
underneath that "gray" space between my controls, and the button bar line.
(See attachments)

Here is what caused my controls to be clipped.

Because on page 1, I called setDescription(""), the "title area" of
the dialog shrunk down in size so only the "First wizard page" text and the
image are visible.
Then on page 2, since I didn't call setDescription(""), that title
area expands downward, pushing the "content area" of the second wizard page
down, but not resizing the whole wizard dialog...hence the bottom of my
controls are cut off.

So, if there were to be a bug here, I'd say that it would be that
when the total size of the wizard dialog for all pages is being calculated,
The maximum size of the title area is not be calculated...it's
using like the size of the first page or something. This is not
withstanding the
fact that my call to setDescription on page one is unnecessary,
and bogus.

And also, by the way, this behavior was conistent across Win32 and
Linux/GTK.

I attached two screen shots of the first two pages to show you
what I mean. Notice on the first page the top title area is shrunken down
(via the setDescription(""), and the second page is not.

The fix ultimately was to remove the bogus call to
setDescription("")...

Anyway, any of the SWT folks think this is a bug, or is it acting
as designed?

Thanks,
Joe






  • Attachment: page2.jpg
    (Size: 45.06KB, Downloaded 177 times)
  • Attachment: page1.jpg
    (Size: 23.45KB, Downloaded 155 times)
Re: Wizard Page Wierdness [message #466079 is a reply to message #466076] Fri, 30 December 2005 21:00 Go to previous message
Joe Mihalich is currently offline Joe MihalichFriend
Messages: 25
Registered: July 2009
Junior Member
Btw, depending on your news browser, my pages may be reveresed in the
attachments. The
first page is the one with the edit control, and the 2 combo boxes. The
second page is
the one that has a lot of controls in it.

Joe
Previous Topic:how to refresh the view
Next Topic:SWT Browser - automation - plug-ins
Goto Forum:
  


Current Time: Sat Sep 21 00:30:52 GMT 2019

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

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

Back to the top