[Nebula] Collapsible Buttons don't collapse, won't fill with data [message #664089] |
Thu, 07 April 2011 13:04 |
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
[Updated on: Thu, 07 April 2011 13:08] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10532 seconds