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
1871
Text Editor disable mouse down.
posted

I have an ultraTextEditor that needs the ability to show the overflow indicator at the same time the ultraTextEditor cannot become active. When an ultraTextEditor is in readonly mode the user has the ability to place the cursor in the ultraTextEditor. I cannot allow this to happen. Usually to fix this type of issue I would set Enabled to false and the mouse buttons would be ignored but when an ultraTextEditor is disabled the show over flow indicator does not work.

I have attempted many different things. When the mouse down event is fired I forced the active control to be another control. This worked but created flashes on the screen that made our design looked flawed. I tried setting the backcolor and backcolordisabled to Transparent hoping this would cut down on the flashing and it has not.

What are my options.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    I tried this out and the OverflowIndicator displays when the control is disabled. So when you say "does not work", I assume you mean that you moving the mouse over it does not show the tooltip with the entire text? Is that right?

    If that's what you need, then this is very easy to do. Leave Enabled and ReadOnly both set the defaults and cancel the BeforeEnterEditMode event:


            private void ultraTextEditor1_BeforeEnterEditMode(object sender, CancelEventArgs e)
            {
                e.Cancel = true;
            }

Children