Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [collapsibleButtons] won't expand / collapse
[collapsibleButtons] won't expand / collapse [message #664321] Fri, 08 April 2011 11:38 Go to next message
Issueis  is currently offline Issueis Friend
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 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
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
Re: [collapsibleButtons] won't expand / collapse [message #664351 is a reply to message #664321] Fri, 08 April 2011 13:57 Go to previous messageGo to next message
Issueis  is currently offline Issueis Friend
Messages: 14
Registered: April 2011
Junior Member
I've got my source from the examples and also ran for itself, doesn't work.


Re: [collapsibleButtons] won't expand / collapse [message #664552 is a reply to message #664351] Mon, 11 April 2011 06:56 Go to previous message
Issueis  is currently offline Issueis Friend
Messages: 14
Registered: April 2011
Junior Member
Any other suggestion or maybe a snippet?

Help is appreciated.

Thankful Issueis
Previous Topic:SWT.VIRTUAL in gridtableviewer
Next Topic:Linux Ubuntu JVM Crash using CollapsibleButtons and CDateTime
Goto Forum:
  


Current Time: Thu Apr 25 21:31:11 GMT 2024

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

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

Back to the top