Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Re: How to implement text selection tool

$
0
0

Hello,

        Thanks for your response.

 

        I have implemented the function for AVToolRec as follows.

 

        AVToolRec AVRect;

        AVRect.size = sizeof(AVToolRec);

        AVRect.GetType = ASCallbackCreateProto(GetTypeProcType, &ToolGetType);

        AVRect.DoClick = ASCallbackCreateProto(DoClickProcType, &DoClick);

        AVRect.AdjustCursor = ASCallbackCreateProto(AdjustCursorProcType, &AdjustCursor);

        AVAppRegisterTool(&AVRect);

 

        ACCB1 ASBool ACCB2 AdjustCursor(AVTool tool, AVPageView pageView, Int16 x, Int16 y)

     {

               AVSysSetCursor((AVCursor) LoadCursor(NULL, IDC_CROSS));           //Works fine for cross

      }

 

   I want to develop the cursor as acrobat provides.. "Selection tool for text and images"

   I tried to change the cursor to IDC_BEAM,  But it's not useful. Is it possible to create the cursor as acrobat provides and get coordinates for the text selection.

 

  Please help me to solve this.

 

Regards,

 

Shilp


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>