When a text is pasted into the UltraTextEditor, I would like to preprocess that - look into the clipboard contents for specific stuff and then decide on the contents to be pasted. With normal windows forms textbox, I can override WndProc method, process the WM_PASTE (0x302) message. But with the UltraTextEditor I'm not getting the message - 0x302. Is there any way I can achieve this?
Hi Mike,
Any update on this?
I also have the same requirement to preprocess the pasted text.
Can you please let me know any work around for this?
Thanks,
Satish
Hi,
I don't know of any immediate plans to implement such an event. You can Submit a feature request to Infragistics.
Mike thanks for clarifying this, how about my main question, are you planing to introduce BeforePaste?
K
The property is virtual because we, internally, use a different textbox class based on whether or not we have full trust. There are certain things we cannot do in a partial trust environment. It's not intended for you to replace the TextBox with your own control.
Hi
Have you implemented this in the end? I'm having the same problem and cannot find easy solution to this.
I was thinking I could create my own implementation but textBox is private so I can not create my own editor at this point, even if I override TextBox property - this is actually stange as if textBox is private it doesn't make sense to have TextBox property virtual as if you change it and not use textBox filed this class will be in invalid state as other functions are using textBox field.
This is EditorWithText class.
public virtual EmbeddableTextBox TextBox{ get { if ((this.textBox == null) && !base.Disposed) { try { new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Assert(); this.CreateEmbeddableTextBoxWithUIPermissions(); } catch { this.textBox = new EmbeddableTextBox(this); } this.textBox.Location = new Point(-10000, -10000); } return this.textBox; }}