I had a observation from our client that the click on the toolbar does not "validate" the text in the toolbar's textboxes.
See bellow an example:
Is it possible to detect the mouse click on the toolbar, in order to validate (simulate a lostfocus) the textbox?
even if i didn't, finally, understand what actions should I do in order to "use" the TextBoxTool when I have a textBox on the toolbar, anyway I resolved the problem in that way:
Every time user clicks on the toolbar, it arrives that it hits one of the labels that arround the textboxes. So, I move the focus away from the texboxes (validates them) evety time the ToolClick event occurs with the labels tool key as parameter.
The UltraToolbarsManager has many tool types built into it, such as ButtonTool and PopupMenuTool. One of the tool types is TextBoxTool. If you use this tool, you be notified via events when the user enters and leaves the text box. The TextBoxTool will also exit edit mode if you click on another toolbar or an empty area.
Mike Dour"] Are you using TextBoxTools. If they are, the BeforeToolExitEditMode and AfterToolExitEditMode events should fire when the drop down closes. You can validate the value in one of those events.
Are you using TextBoxTools. If they are, the BeforeToolExitEditMode and AfterToolExitEditMode events should fire when the drop down closes. You can validate the value in one of those events.
Hi!
I don't understand what TextBoxTools should I use.
Also, It should not depend of dropDown, because the same behavior should be kept even if the toolbar is entirely displayed. A click on a "epmty" toolbar space should validate the textBox.
By the way, we will suppose the textBox as a standard windows textbox.