I have a UltraToolbarsManager with a several buttons and a ControlContainerTool that has a UltraTextEdtor as the contained control. I am using a UltraTextEditor so I can use the NullText property. The TextBoxTool does not seem to have the NullText property.This works fine except with tabbing. I can tab into the text editor, but when I tab to the next control, the text editor seems to lose focus, but I cannot tell what control is tabbed to. When I hit tab again the TextEditor receives the focus again. I set AcceptsTab to false, TabStop to true, and I set the tab index for the Text editor, but it does not seem to make a difference.
If I use the TextBoxTool, the tabbing seems to work, but I do not get the NullText functionality.
Is there a way to either get tabbing to work using a UltraTextEditor as the contained control?
Thank you for your post. Try to set ‘AlwaysInEditMode’ to true of the UltraTextEditor and test if this workaround the issue .
AlwaysInEditMode property should allow you to have focus while tabbing.
Regarding not able to find ‘NullText’ property ,I search through the API and did find nullText property available in the UltraTextEditor.
If alwysInEditmode dosent help for some reason then the best way for us to assist you is if you provide a small isolated sample that we can run and use for debugging locally.
Thank you for your quick reply.
The problem is not with the UltraTextEditor getting focus. The problem is Getting the focus to go to the other tools in the tool bar when tabbing. I do not want the UltraTextEditor to always be in edit mode. I do not want it to not be in edit mode when the focus is on other controls so it will show the null text. The TextTool for the tool bar does not have the NullText property or I would use that.
Edit Mode in this context probably doesn't mean what you think it does. The only real ramifications of AlwaysInEditMode is that you won't get the benefit of some of the advanced Appearance settings like gradient backgrounds. Which you probably aren't using anyway. So I think setting AlwaysInEditMode to true is a good solution, if it works. NullText should still work and it will not really affect anything else in your application in any noticable way. Did you try it out?
Yes I did try setting AlwaysInEditMode to true. It did not fix the tabbing issue. It will still not tab past the text editor. Also when AlwaysInEditMode is set to true, the NullText will not show.Either way the tabbing does not work with AlwaysInEditMode set to true or false.
What are the tools on? A Toolbar? A ribbon? A menu?
Also... how are you giving focus to the UltraTextEditor? Are you tabbing into it or clicking on it. Pressing Alt will activate the first tool on a Toolbar and then Tab should iterate over the tools on that Toolbar at that point. I tried this out and the tab order is a little weird, but I'm not losing the focus like you describe.