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
250
Context Menu for UltraTextEditor has Paste option enabled for Read Only Textbox
posted

Hi,

 I'm working on a winform control with textboxes that are not modified in any special way except that they are set to be read only.  When I right click on the control, I'm given the following context menu

Undo(disabled)

Cut (disabled)

Copy (Disabled)

Paste (ENABLED)

Delete (Disabled)

Select All (Enabled)

Right To left reading order (enabled)

Show Unicode control Chars (enabled)

Inert Unicode Control Character (ENABLED)

 

The issue is that Paste and Insert Unicode Dcontrol characters should both be DISABLED when this control is read only.  Is there something that I'm missing?

-Chris

 

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Chris,

    I tried this out y placing a new UltraTextEditor (v9.2) on a form and setting the ReadOnly property to true. I run the app and I am not getting the same behavior you describe.

    My Paste option is correctly disabled.

    I am seeing that the Insert Unicode Control Character option is enabled. But when I try the same thing with the Inbox TextBox control, I get the same results, so this is apparently correct behavior. Clicking on this option to attempt to insert a character doesn't actually do anything, but the item is supposed to be enabled.

    In fact, when the UltraTextEditor is in edit mode, it displays an inbox TextBox control over itself, anyway. So the context menu you see here is actually the built-in context menu from the inbox TextBox and the UltraTextEditor doesn't really have any control over it.

Children