Skip to main content
Inspiring
February 9, 2009
Answered

SelectionManager blinking i-beam removal

  • February 9, 2009
  • 2 replies
  • 437 views
I have an application that for all intents and purposes can be considered similar to the Pagination example.
I do not want the end user to be able to edit the document however I need to do certain operations when the end user interacts with the text, such as perform some actionscript when they click a LinkElement, or create a hover box over certain ParagraphElements and DivElements on mouseover.

Therefore I have created a superclass to SelectionManager to handle the text events and the mouse events.

The side effect of this design is that when the end user hovers the mouse over any old text, the mouse pointer is almost always an i-beam insertion point, giving the impression that editing is available, even though they cannot in fact edit.

If I find an alternate way of doing the events and eliminate the SelectionManager altogether, then I dont get the handy ability for my users to select a section of text and copy it to the clipboard.

Surely there must be a way, when using a SelectionManager to have the cursor be the arrow when hovering over arbitrary text and a hand pointer when hovering over a LinkElement rather than the i-beam, however, I cannot figure out how to make this happen on my own.

If anybody out there can help me with this, I will surely owe you my gratitude.
Thanks,
Tim

Anyone?
This topic has been closed for replies.
Correct answer tpf70
longlostbigelow ,
Thans for your reply.

I must have done that 100 times, but just couldnt get it to work..... then you inspired me to try one more time, with one slight change...

In my mouseOverHandler, I was doing some processing, and in general, if nothing special was happening i would return super.mouseOverHandler(e).

Well, that was what was doing me wrong....

super was overriding the mouse cursor.

Thanks for taking the time to peek at this. You really made my app much prettier with one simple change.

Thanks,
Tim

2 replies

tpf70AuthorCorrect answer
Inspiring
February 16, 2009
longlostbigelow ,
Thans for your reply.

I must have done that 100 times, but just couldnt get it to work..... then you inspired me to try one more time, with one slight change...

In my mouseOverHandler, I was doing some processing, and in general, if nothing special was happening i would return super.mouseOverHandler(e).

Well, that was what was doing me wrong....

super was overriding the mouse cursor.

Thanks for taking the time to peek at this. You really made my app much prettier with one simple change.

Thanks,
Tim
Participating Frequently
February 16, 2009
You should be able to get the effect you are looking for by overriding the mouseOverHandler. I was able to import a text flow containing a link and had a default, mouse pointer except over the link, which used the hand tool.

------------------------

If this does not answer your question or you need further help, please post and I will get back to you ASAP.