Skip to main content



      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 01:22 Go to next message
Eclipse UserFriend
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 01:43 Go to previous messageGo to next message
Eclipse UserFriend
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 02:54 Go to previous messageGo to next message
Eclipse UserFriend
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 04:01 Go to previous messageGo to next message
Eclipse UserFriend
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 09:58 Go to previous messageGo to next message
Eclipse UserFriend
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 13:13 Go to previous message
Eclipse UserFriend
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 13:15] by Moderator

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


Current Time: Wed Jul 23 04:54:34 EDT 2025

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

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

Back to the top