[collapsibleButtons] won't expand / collapse [message #664321] |
Fri, 08 April 2011 11:38 |
Issueis Messages: 14 Registered: April 2011 |
Junior Member |
|
|
Hello,
iam using the collapsible buttons widget from the Eclipse Nebula Project. ( http://www.eclipse.org/nebula/widgets/collapsiblebuttons/col lapsiblebuttons.php)
CustomButton mb;
CustomButton meb;
CustomButton skB;
// init
CollapsibleButtons cButtons = new CollapsibleButtons(parent, SWT.NONE,IColorManager.SKIN_OFFICE_2007);
// layout
cButtons.setLayoutData(new GridData(GridData.GRAB_VERTICAL
| GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_END));
// Buttons
mb = cButtons.addButton("Mb", null, null, null);
meb= cButtons.addButton("Meb", null, null, null);
skB = cButtons.addButton("Sk, null, null, null);
mb.setData("Iam Info");
meb.setData("Iam Info");
skB.setData("Iam Info");
}
Put this in my View an get three buttons, called like in the snippet. If i click the buttons, they don't collapse and doesn't show the String from the setData() Line.
Can anyone tell me, if is missunderstood the widget? Thought the collapsible and expandable behaviour is standard and hasn't to be done in the Listeners.
Maybe some of you could correct my snippet or post an own.
Thankful
Issueis
|
|
|
Re: [collapsibleButtons] won't expand / collapse [message #664324 is a reply to message #664321] |
Fri, 08 April 2011 11:47 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
There should be examples in the CVS how to use them.
Tom
Am 08.04.11 13:38, schrieb Issueis:
> Hello,
>
> iam using the collapsible buttons widget from the Eclipse Nebula
> Project.
> ( http://www.eclipse.org/nebula/widgets/collapsiblebuttons/col lapsiblebuttons.php)
>
>
>
> CustomButton mb;
> CustomButton meb;
> CustomButton skB;
>
> // init
> CollapsibleButtons cButtons = new CollapsibleButtons(parent,
> SWT.NONE,IColorManager.SKIN_OFFICE_2007);
>
> // layout
> cButtons.setLayoutData(new GridData(GridData.GRAB_VERTICAL
> | GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_END));
>
> // Buttons
> mb = cButtons.addButton("Mb", null, null, null);
> meb= cButtons.addButton("Meb", null, null, null);
> skB = cButtons.addButton("Sk, null, null, null);
> mb.setData("Iam Info");
> meb.setData("Iam Info");
> skB.setData("Iam Info");
> }
>
>
> Put this in my View an get three buttons, called like in the snippet. If
> i click the buttons, they don't collapse and doesn't show the String
> from the setData() Line.
>
> Can anyone tell me, if is missunderstood the widget? Thought the
> collapsible and expandable behaviour is standard and hasn't to be done
> in the Listeners.
>
> Maybe some of you could correct my snippet or post an own.
>
> Thankful
>
> Issueis
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03025 seconds