Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » checkbox -> togglebutton(I want to see a single checkbox)
checkbox -> togglebutton [message #1008680] Wed, 13 February 2013 14:49 Go to next message
Christian Stellwag is currently offline Christian StellwagFriend
Messages: 48
Registered: July 2009
Location: Munich
Member
Hi,

when creating a single Button with SWT.CHECK style set, quite surprisingly a toggle Button is rendered.
But I'd like to see a Checkbox.

Is this due to Riena standards?
I assume Riena is responsible for it, but it's just a guess.
Since i couldn't figure out where this happens i'd really appreciate some enlightenment on this topic. In best case a solution to get the checkbox.

Chris
Re: checkbox -> togglebutton [message #1009146 is a reply to message #1008680] Thu, 14 February 2013 14:49 Go to previous messageGo to next message
Eclipse UserFriend
Hi Chris,

usually, Riena should not change the button style. How are you creating the button?

Check if these work for you:
UIControlsFactory.createButton(parent).setText("Push");
UIControlsFactory.createButtonCheck(parent).setText("Check");
UIControlsFactory.createButtonRadio(parent).setText("Radio");
UIControlsFactory.createButtonToggle(parent).setText("Toggle");


If the unexpected behavior persists, it is probably a bug you can file here. If possible provide a snippet and the information about your environment.

Jordan
Re: checkbox -> togglebutton [message #1009481 is a reply to message #1009146] Fri, 15 February 2013 08:10 Go to previous messageGo to next message
Christian Stellwag is currently offline Christian StellwagFriend
Messages: 48
Registered: July 2009
Location: Munich
Member
Hi Jordan,

I created it with UIControlsFactory.createButtonCheck(parent),
but i get same results when creating with new Button(parent, SWT.CHECK).
Strange imho. It could easily be from SWT, too.
I posted on this forum because if Riena was responsible I hoped for confirmation and hopefully a hint how to circumvent as well.

Cheers, Chris
Re: checkbox -> togglebutton [message #1011752 is a reply to message #1009481] Wed, 20 February 2013 07:43 Go to previous message
Christian Stellwag is currently offline Christian StellwagFriend
Messages: 48
Registered: July 2009
Location: Munich
Member
I finally found the code rendering a Button instead of the Checkbox (in our codebase =).
-> Neither Riena nor SWT issue
Previous Topic:Remote Services with EMF generated objects and TENEO
Next Topic:Eclipse package for Riena
Goto Forum:
  


Current Time: Sat Apr 20 00:16:06 GMT 2024

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

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

Back to the top