Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » radio button bug?
radio button bug? [message #1565560] Thu, 15 January 2015 10:54 Go to next message
Luka Cavic is currently offline Luka CavicFriend
Messages: 25
Registered: August 2014
Junior Member
Hi, I thing that there is a possible bug in scout

I have a radio group, with three buttons, on each button label visible is set to false, but it continues to be visible....

check the attachments!

is there a some king of fix?

index.php/fa/20444/0/

index.php/fa/20445/0/
  • Attachment: Untitled.png
    (Size: 1.62KB, Downloaded 132 times)
  • Attachment: red.png
    (Size: 7.74KB, Downloaded 123 times)

[Updated on: Thu, 15 January 2015 10:54]

Report message to a moderator

Re: radio button bug? [message #1565586 is a reply to message #1565560] Thu, 15 January 2015 11:12 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
I could reproduce it... And this is the case for Swing, SWT and RAP. (In addition SWT and RAP doesn't seems to support the background color).

If you open a Bug for this, you might be prepared to contribute a patch; otherwise I cannot guaranty you that the dev team will have time to look into it.

As workaround you can remove the Labels from the Buttons.
Re: radio button bug? [message #1565613 is a reply to message #1565586] Thu, 15 January 2015 11:31 Go to previous messageGo to next message
Luka Cavic is currently offline Luka CavicFriend
Messages: 25
Registered: August 2014
Junior Member
thats what I wanr, to remove label from radio buttons, but it is not workig....do you have some solution?
Re: radio button bug? [message #1565671 is a reply to message #1565613] Thu, 15 January 2015 12:14 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1243
Registered: October 2011
Senior Member
If you remove completely the labels from the Buttons, the buttons will be displayed without any label.

index.php/fa/20451/0/

@Order(3000.0)
public class PriorityGroup extends AbstractRadioButtonGroup<Long> {

  @Override
  protected String getConfiguredLabel() {
    return TEXTS.get("Priority");
  }

  @Order(1000.0)
  public class HighButton extends AbstractExtensibleRadioButton<Long> {

    @Override
    protected String getConfiguredBackgroundColor() {
      return "FF0000";
    }

    @Override
    protected Long getConfiguredRadioValue() {
      return 10L;
    }
  }

  @Order(2000.0)
  public class MediumButton extends AbstractExtensibleRadioButton<Long> {

    @Override
    protected String getConfiguredBackgroundColor() {
      return "FFFF00";
    }

    @Override
    protected Long getConfiguredRadioValue() {
      return 20L;
    }
  }

  @Order(3000.0)
  public class LowButton extends AbstractExtensibleRadioButton<Long> {

    @Override
    protected String getConfiguredBackgroundColor() {
      return "00FF00";
    }

    @Override
    protected Long getConfiguredRadioValue() {
      return 30L;
    }
  }
}
  • Attachment: Priority.png
    (Size: 2.03KB, Downloaded 106 times)
Previous Topic:Street maps
Next Topic:Is "Tabled look" for Listbox available?
Goto Forum:
  


Current Time: Mon Oct 23 22:43:16 GMT 2017

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

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