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
3338
SelectedText property of UltraTextEditor Issues
posted

I have a couple issues revolving around the selected text of the UltraTextEditor.

One issue I have discussed before is how to keep the text highlighted/selected while the control is not in edit mode / focused.  I am trying to get some similar functionality like in the Microsoft SQL Server Management Studio.  When you highlight part of your query then change focus to another window the text stays highlighted (but with a slightly different color to stress that it is not the focused textbox).  However, with the UltraTextEditor the highlighted text coloring disappears as soon as I select something else on the form.  

A related issue that I keep having is that I keep getting the exception:  'Can't access SelectedText unless the Editor is in edit mode.'  when trying to use the SelecteText property.  The only way I can get this to work is if I enable the 'AlwaysInEditMode' property.  Is there another way to get around this without having to have that property set.  I am trying to do something pretty simple.  Say you have a form with a UltraToolBar with a button tool on it, and you also have a text box on the form.  I want to just be able to highlight some text from the forms textbox, then hit the ultratoolbar button and have it pop up a message with the selected/highlighted text in it.  

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    No, I don't know of any other way to keep text highlighted in the control except by setting AlwaysInEditMode to true.

    I just tried out what you are attempting here with and without setting AlwaysInEditMode to true and I have no problem with it. Are you saying it's not working for you? 

     

Children
No Data