Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » how to select labels using mouse(Selecting labels/text which appear in browser.)
how to select labels using mouse [message #1356502] Thu, 15 May 2014 05:22 Go to next message
Naveen Aechan is currently offline Naveen AechanFriend
Messages: 4
Registered: December 2013
Junior Member
I`m developing RAP applications quit a while back, I see an issue with mouse selection on the labels.

General tendency, as a user I expect I can select text which appears on the browser using mouse, either double clicking (which selects whole text) or by selecting some part of the label. But In RAP seems like it doesnt work at all Rolling Eyes .

Ex: I have an a simple UI, which has one label in it, and when I launch the RAP application I want to select that text using mouse click.

Any help would be appreciated.
Re: how to select labels using mouse [message #1356535 is a reply to message #1356502] Thu, 15 May 2014 05:43 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
RAP behaves exactly like SWT, where Label text can't be selected. Use a
Text widget with READ_ONLY style instead.
HTH,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: how to select labels using mouse [message #1356654 is a reply to message #1356535] Thu, 15 May 2014 06:54 Go to previous messageGo to next message
Naveen Aechan is currently offline Naveen AechanFriend
Messages: 4
Registered: December 2013
Junior Member
That Spoils the UI then... My requirement was to select the label which is shows on a custom widget (which actually behaves as a tooltip box)
Any other alternative?
Re: how to select labels using mouse [message #1356773 is a reply to message #1356654] Thu, 15 May 2014 08:01 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
please open an enhancement request and we will consider the options.
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: how to select labels using mouse [message #1357398 is a reply to message #1356773] Thu, 15 May 2014 13:58 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
Hi.

We already have a bug for this:

Bug 406199 - Add a way to re-enable selectable content and browser
context menu

https://bugs.eclipse.org/bugs/show_bug.cgi?id=406199

Not enough people seemed interested to give it a high priority and
nobody requested sponsored development.

Not sure why it "spoils" your UI though. A Text widget that is not
editable and has no border is visually indistinguishable from a Label
(though it will have a text cursor when focused).

Greetings,
Tim

Am 15.05.2014 10:01, schrieb Ivan Furnadjiev:
> Hi,
> please open an enhancement request and we will consider the options.
> Best,
> Ivan
>

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: how to select labels using mouse [message #1384719 is a reply to message #1357398] Fri, 30 May 2014 17:13 Go to previous message
Naveen Aechan is currently offline Naveen AechanFriend
Messages: 4
Registered: December 2013
Junior Member
I`ve managed to make use of Text in SWT and apply below CSS to make it look like a label. It completes my requirement. Ofcourse using Text in READ_ONLY mode with no borders. Smile

Original Text CSS
        font: 11px arial, tahoma, helvetica, sans-serif;
	border: none;
	padding: 0px 0px 0px 0px;
	border-radius: 0;
	color: #000000;
	background-color: transparent;
	background-image: none;
	text-shadow: none;
	box-shadow: none;
	height: 18px;


After modification.
        font: 12px arial, tahoma, helvetica, sans-serif;
	border: 1px solid #cccccc;
	border-radius: 0;
	padding: 5px 5px 5px 5px;
	color: #000000;
	background-repeat: repeat-x;
	background-position: left top;
	background-color: #ffffff;
	background-image: none;
	text-shadow: none;
	box-shadow: none;
	height: 18px;



Thanks
Naveen

[Updated on: Fri, 30 May 2014 17:15]

Report message to a moderator

Previous Topic:EMF Databinding Issue
Next Topic:Deployement of RAP application on Apache Tomcat
Goto Forum:
  


Current Time: Fri Mar 29 13:10:11 GMT 2024

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

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

Back to the top