Current Position:Home > PMPoint to Text Index conversion

PMPoint to Text Index conversion

Update:11-30Source: network consolidation
Advertisement
Hi All,
Can anyone guide me for the following,
- I am having a PMPoint object in Pasteboard coordinate space and this lies within in a text box.
- I want to calculate corresponding text index to this PMPoint.
I didn't find any APIs in InDesign which takes a PMPoint and provide its corresponding text index in a text frame even in waxline and waxrun interfaces.
Some Info:
1) Application: Adobe InDesign CS4
2) Machine:  MAC OS X
Thanks,
Vinod

The Best Answer

Advertisement
Many Thanks Dirk,
I had manipulated this on the basis of wax line and wax run concept and calculated the text index, but now I think API suggested by you is better.
Basically, I have one more problem related to this as follows,
I have to make a continuous tracking of mouse movement, when it is within a text frame(during drop operation) and this tracking has to display with the help of a caret movement. So, After converting the PMPoint to Text index I am using
Utils<IDragDropTextUtils>()->DrawCaretAtDropLocation(iLayoutview, storyRef, range) API.
This way, I am able to draw a caret at the calculated text index.
This API is working fine but the impression of old Caret still remains in the frame while mouse movement so lots of caret seems in the frame.
So Can you please suggest me any methods to remove those old impression or any other API which can perform the caret movement at the specified index or any other way of doing the same.
Some info:
1) I am implementing this in a function DoDragWithin(IDragDropTarget* target, const PMPoint& localPt) of my class derived from CDragDropTargetFlavorHelper. Here I am getting a continuous call and also the updated PMPoint. So I think this is the function where I can show the mouse tracking with the help of a caret movement.
2) All is related to Drag and Drop functionality.
3) I see InDesign has this mouse tracking behavior when we drag text from another application and drop it on a text box (a cursor tracks the drop location)
Tried so far:
Tried below methods in DoDragWithin() to remove the old caret impression but no results,
ITextParcelListComposer::RecomposeThruTextIndex()
IFrameListComposer::RecomposeThru()
Hope to get some help from you ASAP.
Thanks,
Vinod
  • PMPoint to Text Index conversion Update:11-30

    Hi All, Can anyone guide me for the following, - I am having a PMPoint object in Pasteboard coordinate space and this lies within in a text box. - I want to calculate corresponding text index to this PMPoint. I didn't find any APIs in InDesign which

  • Is there a way to download a text/imessage conversation from your iphone to your computer to print as a document? Update:11-30

    is there a way to download a text/imessage conversation from your iphone to your computer to print as a document?Yes. I do it regularly to archive my messages. Try the computer apps PhoneView (Mac) or TouchCopy (Mac & PC): http://www.ecamm.com/mac/ph

  • Error in creation of text indexes and synching with user datastore Update:10-11

    Hi has any body encountered error in creating text indexes on 9.2.0.1 with user datastore. you can create them only with no-populate option. however once created after checking-in documents the indexes cannot be synched using ctx_ddl command manually

  • Is a Full Text Index search case sensitive or not in SQL Server 2012? Update:10-11

    I setup full text index on my contact table and am attempting to run a search on it using the following query: SELECT * FROM sysdba.Contact C WHERE CONTAINS(C.FirstName, 'Test') OR CONTAINS(C.LastName, 'Test') The problem is it's clearly running a ca

  • Multiple text indexes on a single database Update:10-11

    Hi, We want to enable text search on one of our databases. Due to the specificity of the database we want to use a custom thesaurus. I would like to know if there's a way to create different text indexes using different thesaurus and then specify the

  • How can I print off a text message conversation? Update:10-11

    I have to print off a text message conversation and I was wondering if there is any other way to print them off instead of using screen shots?An alternate utility you may want to look into is DigiDNA's Disk Aid. You install it on a computer, Mac or P

  • How can I print a text message conversation from my iPhone? Not using screenshots. Update:10-11

    How can I print a text message conversation from my iPhone? Not using screenshots. It's around 500 messages so screenshots is not a option.Yes, you can delete from iphone: http://manuals.info.apple.com/enUS/iPhone_iOS4_UserGuide.pdf It is covered in

  • Text Index works fine consistently with Table, but not on underlying View Update:10-11

    Hi, We are facing weird issue relating to Oracle Text Indexes. Search using Oracle Text Index works fine on a Table, but when running query on View it gives sometimes (not consistently) ORA-20000: Oracle Text error: DRG-10849: catsearch does not supp

  • Exchange Server Information Store has encountered an error while executing a full-text index query Update:10-11

    Hi Team need help Exchange 2013 EAC doesnt show the databases and it gives message "Your request couldn't be completed. Please try again in a few minutes." Its a 9 Node DAG and I stopped and diabled Search and Search Host controller on all of th

  • ERROR while syncing the Text Index Update:10-11

    Hi All, We are facing an issue while syncing the text index on the table, and the error is below, System error: Plsql job execution is failed with error code -20000 and error message ORA-20000: Oracle Text error: DRG-10017: you must be CTXSYS to do t