Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Problem with UltraFormattedTextEditor's Cursor Position and ContextMenuItemClicked
posted

Hi,

I have two problems in dealing with UltraFormattedTextEditor's Paste.

1) I am not able to find ContextMenuItemClicked(for Paste) of UltraFormattedTextEditor.

2) The same event I have to capture on ctrl+v also.for this I used mousedown and managed to get ctrl+v. then again I face a problem in getting UltraFormattedTextEditor's cursor position.because I am required to paste some fomatted text of Clipboard in the middle of existing text. as of now I am using following method of User32.dll

int x = (int)SendMessage(textEditor.Handle, 176, 0, 0);//176 is the int for EM_GETSEL

x = x & 0xffff;

 

string oldText = textEditor.Text;

 

string newText = oldText.Substring(0, x);

 

//Inserting 8 Spaces equivalent to tab key press in notepad

textEditor.Text = newText +

this.GetFormattedClipboardText() + oldText.Substring(x);

 

 

but the problem is I have to apply the same thing in different forms and this code is not helpful in other forms than where I was working.for other forms SendMessage is returning 0 only.

Please help me in getting the solution.

Thanks a ton.

Cheers,

Nishant Sagar

 

Parents
No Data
Reply
  • 48586
    posted

    Hello,

     

    After some research, this issue has been determined to be a new feature request.  I have sent your feature request directly to our product management team.  Our product team chooses new feature requests for development based on popular feedback from our customer base.  Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.

     

    We value your input, and our philosophy is to enhance our toolset based on customer feedback.  If your feature is chosen for development, you will be notified at that time.  Your reference number for this feature request is FR13717.

     

    If you would like to follow up on your feature request at a later point, you may contact Developer Support management via email.  Please include the reference number of your feature request in the subject and body of your email message.  You can reach Developer Support management through the following email address:  dsmanager@infragistics.com

     

    Thank you for your request.

Children
No Data