Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Question: custom controls and text selection
Question: custom controls and text selection [message #101832] Mon, 11 August 2008 05:47 Go to next message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Gentleman,

I've made a custom control to work with text. Used some javascript to
hook a "div" with child "span" nodes.

It works as desired. However the user can't select(highlight) any text
presented by the said control.

I guess there should be a style trick to enable selection.

Thanks
Re: Question: custom controls and text selection [message #102046 is a reply to message #101832] Tue, 12 August 2008 09:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Dmitry,

Dmitry Pryadkin wrote:
> I've made a custom control to work with text. Used some javascript to
> hook a "div" with child "span" nodes.
>
> It works as desired. However the user can't select(highlight) any text
> presented by the said control.
>
> I guess there should be a style trick to enable selection.

I don't know of any method of enabling text selection, I thought it
should just work as you describe. In which qooxdoo widget do you wrap
the div node? Can you provide a code snippet?

Best Regards, Ralf
Re: Question: custom controls and text selection [message #102051 is a reply to message #102046] Tue, 12 August 2008 09:51 Go to previous messageGo to next message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Ralf,

> I don't know of any method of enabling text selection, I thought it
> should just work as you describe. In which qooxdoo widget do you wrap
> the div node? Can you provide a code snippet?
>

I'm using the CanvasLayout class to derive my controls.

I've already contacted folks at qooxdoo. And that's the intended
behavior, because otherwise the user can select all widgets on a page.

So I had to wrap the div node inside of iframe.

Thanks
Re: Question: custom controls and text selection [message #102090 is a reply to message #102051] Tue, 12 August 2008 10:07 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi Dmitry,

you may want to check out the Widget#setSelectable method of qooxdoo. I
never played around with that but with a little bit luck it works as
expected.

Greets
Benny

Dmitry Pryadkin wrote:
> Ralf,
>
>> I don't know of any method of enabling text selection, I thought it
>> should just work as you describe. In which qooxdoo widget do you wrap
>> the div node? Can you provide a code snippet?
>>
>
> I'm using the CanvasLayout class to derive my controls.
>
> I've already contacted folks at qooxdoo. And that's the intended
> behavior, because otherwise the user can select all widgets on a page.
>
> So I had to wrap the div node inside of iframe.
>
> Thanks
Re: Question: custom controls and text selection [message #102129 is a reply to message #102090] Tue, 12 August 2008 11:50 Go to previous message
Dmitry Pryadkin is currently offline Dmitry PryadkinFriend
Messages: 146
Registered: July 2009
Senior Member
Hi Benjamin,

> you may want to check out the Widget#setSelectable method of qooxdoo. I
> never played around with that but with a little bit luck it works as
> expected.

It does the trick. Thanks.
Previous Topic:SWT DateTime
Next Topic:How to change images?
Goto Forum:
  


Current Time: Tue Apr 23 07:13:19 GMT 2024

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

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

Back to the top