Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Cursor Issue

New Here ,
Jul 30, 2010 Jul 30, 2010

Hi All
I have a cursor issue in my text flow.

The normal scenario is when the mouse cursor is over the text,   it is shaped as text cursor(like a vertical line in between two  horizontal lines) and when mouse moves and come out of text, it changed  to a pointer...this is the right behavior that mouse cursor should show.  

Now the problem...
when I made the text of  the text flow read only by selecting a entry from the combo box which  has other entries like read-select only,read - write both....If I place  the cursor inside the text after opening the combo box and then select  the read only option by using up arrow or down arrow and enter  key....the cursor become a text cursor permanently..i.e it does not  change when it moved out of text area and rolled over the buttons of the  component....which looks very ugly that a text cursor over the button  or any other component...it backs to its normal behaviour when I refresh.
Same problem is there if I use any key board shortcut  to make text read only.
You can see that when I am writing this question if mouse cursor is  over the text area it is text cursor and I am moving mouse to Post Message button...it changes to pointer....I think now the issue is  clear.

TOPICS
Text layout framework
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Aug 02, 2010 Aug 02, 2010

This sounds like a bug that was in TLF 1.0, but has since been fixed in our TLF 2.0 open source.

When the mouse cursor is over text, if the text is editable or selectable, the mouse cursor will show as an I-beam. If the text is neither editable nor selectable (i.e., the textFlow's interactionManager is null), then the cursor doesn't change as it goes over the text, it will show as a simple arrow. This is by design to show that the text cannot be selected. When you switch from having a valid textF

...
Translate
Adobe Employee ,
Aug 02, 2010 Aug 02, 2010

This sounds like a bug that was in TLF 1.0, but has since been fixed in our TLF 2.0 open source.

When the mouse cursor is over text, if the text is editable or selectable, the mouse cursor will show as an I-beam. If the text is neither editable nor selectable (i.e., the textFlow's interactionManager is null), then the cursor doesn't change as it goes over the text, it will show as a simple arrow. This is by design to show that the text cannot be selected. When you switch from having a valid textFlow.interactionManager to one that is null, the cursor should be changed to an arrow.

You can check out our pre-release version on SourceForge, but assuming you need to use the release version of TLF, the best workaround is probably to reset the mouse cursor directly, like this:

     Mouse.cursor = AUTO;

Thanks,

- robin

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 03, 2010 Aug 03, 2010

So when this TLF 2.0 be available to use.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 03, 2010 Aug 03, 2010

It's available now in prerelease. We don't have a date yet for when its final.

- robin

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2010 Aug 04, 2010

Hi

Can I know the exact cause behind the issue of "not updation of the mouse cursor " on switch to read only mode.

I am asking this because this issue is not assosiated with the switch to "read only mode " only but there is something happening inside the read only procedure which cause it to halt on Ibeam because I am suffering the same issue in another application which is complex...but I am trying to explain...

In the application there is a sub component of the text  which consist only a single container and it has a rectangular boundary around it(which appear on click over only) and the anchors on the corner to drag it on mouse down and change its dimension like we see in the resizing of the images.

When I drag and resize,text flow removed,the dimensions of the container changed and new text flow is created respective to the information stored of the old text flow and the text fit inside the new dimensions of the container.

Boundary around the text is appear on the click over the text....every thing is fine but the issue arise when I resize the container with dragging and the then click inside the text.....My friend sleep in its Ibeam position and does not update until refresh.

I checked out the whole flow but I am unable to find out the exact reason behind...I dont think that there is any mistake in my flow.

I tried the prerelease version but it does not solve the the issue. I tried the Mouse.cursor = MouseCursor.AUTO and also MouseCursor.ARROW.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 04, 2010 Aug 04, 2010

Can you give us a short sample application that shows the problem? I was unable to reproduce this on the prerelease from SourceForge.

Thanks,

- robin

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2010 Aug 04, 2010
LATEST

Hello Robin

To produce the sample code or sample application will be difficult because the code is distributed in about 3 -4 large classes.

I have some organisation restrictions also....

Can I have your email id  so that I can send you the link and can invite you in the live session and produce the issue on my whiteboard and it will be better to discuss the details on  email...

My email id :  sunnychandel@gmail.com

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines