Skip to main content



      Home
Home » Archived » Riena » disabled LinkRidget not rendered as expected
disabled LinkRidget not rendered as expected [message #1073306] Wed, 24 July 2013 09:47 Go to next message
Eclipse UserFriend
Hello Group Members,

we upgraded Riena 3.0.0 to version 5.0.0 recently and encountered the following issue that wasn't there before:

When using a Link and LinkRidget and disabling it, there is no underlined text visible anymore but just a gray box without text. Could this be a bug?

cheers,
Christian

code snippet:

// UI
final Link link = new Link(parent, SWT.None);
bindControl(link, RID_LINK);
// controller
final ILinkRidget linkRidget = getRidget(RID_LINK);
linkRidget.setToolTipText("tooltip");
linkRidget.setText("text");
// disabling the LinkRidget let it appear as a gray box without text
linkRidget.setEnabled(false);
Re: disabled LinkRidget not rendered as expected [message #1073325 is a reply to message #1073306] Wed, 24 July 2013 10:25 Go to previous messageGo to next message
Eclipse UserFriend
I tried this and for me underlined text is only shown if the link is set. What you did is you just set a text but no link.

What you have to do is do this:

linkRidget.setText("Go to Google","http://www.google.de");

Then the text is underlined, no matter whether enabled or disabled. I didnt try 3.0 to see if that has changed, but I tried that with the current HEAD version.

hope that helps
christian

[Updated on: Wed, 24 July 2013 10:25] by Moderator

Re: disabled LinkRidget not rendered as expected [message #1073344 is a reply to message #1073325] Wed, 24 July 2013 11:00 Go to previous messageGo to next message
Eclipse UserFriend
sorry my fault. Actually you are right there is only a gray box.

Can you please add a bugzilla bug and we look into this Smile

I forgot to properly disable it...

christian
Re: disabled LinkRidget not rendered as expected [message #1073347 is a reply to message #1073344] Wed, 24 July 2013 11:03 Go to previous messageGo to next message
Eclipse UserFriend
BTW what was your expectation for a disabled Link ?

For disabled text fields we also remove the content (as you probably know). So for a link that is disabled, it means that you cannot click it anymore. Maybe remove the underline or totally remove it ?

Not sure.

Definitly it shouldn't be a gray box Smile

christian
Re: disabled LinkRidget not rendered as expected [message #1073352 is a reply to message #1073347] Wed, 24 July 2013 11:20 Go to previous messageGo to next message
Eclipse UserFriend
Hello Christian,

thank you for your quick reply!

Our expectation is that it behaves like it did in Riena 3.0.0, i.e.
text is shown (underlined), foreground color is light grey (probably represented by LnfKeyConstants.DISABLED_BACKGROUND) and clicking the Link doesn't trigger anything.

Btw that worked with Riena 3.0.0 and Eclipse_3.7.2. or E_3.8.2.
We are currently working with Eclipse_3.8.2.

Thanks,
Christian
Re: disabled LinkRidget not rendered as expected [message #1073358 is a reply to message #1073352] Wed, 24 July 2013 11:32 Go to previous messageGo to next message
Eclipse UserFriend
I created https://bugs.eclipse.org/bugs/show_bug.cgi?id=413658
Re: disabled LinkRidget not rendered as expected [message #1073359 is a reply to message #1073358] Wed, 24 July 2013 11:34 Go to previous message
Eclipse UserFriend
There is a not so nice workaround: One could disable a parent Composite of the Link.
But with that workaround the foreground color of the Link remains same as enabled (dark blue).
Previous Topic:Problems to get Riena run
Next Topic:mouseUp vs. mouseDown Listening
Goto Forum:
  


Current Time: Sun Jul 06 05:18:43 EDT 2025

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

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

Back to the top