Hi, how to set focus on a ultraToolbarsManager's tool, like button, combobox, etc?
Regards & ThanksWei Wei
Hello Wei Wei,
You could set the 'IsActiveTool' property of a tool to true. Another way would be in run-time to press the 'Alt' key which would activate the first tool, on another press the second and so on... You could take a look at the following forum thread:
http://blogs.infragistics.com/forums/t/1208.aspx.
Please feel free to let me know if I misunderstood you or if you have any other questions.
I have a ultratoolbar manager and root tools on it and that is a control which i am using on another forms.
Now when i hit ALT key it doen't activate first root tool.
For Processcmd key i write a code in Base form to focus first tool.
tbmBaseQueueCtls.Tools(0).IsActiveTool =true
but i am getting this exception.
Can't activate a root tool. Only tool instances that are in an UltraToolbar's or PopupMenuTool's Tools collection can be activated.
Hello Saurabh,
This forum thread is duplicate with http://ko.infragistics.com/community/forums/t/1208.aspx . Please read carefully Mike Dour`s answer:
"the root tools are never displayed. That is why they can not receive focus. You need to activate one of the instance of the tool. You can either activate the first visible tool instance by getting the txtMemberID.SharedProps.ToolInstances[0], or you can activate the instance of the tool specifically in the quick access toolbar (the area next to the Office 2007 application menu button) by getting this.utmMenu.Ribbon.QuickAccessToolbar.Tool[txtMemberID.Key]"
Regards
Thanks for the details, but let me explain something important about UltraToolbarsManager.
Theoretically, you could have both components (both UltraToolbarsManagers) on the same form, but associated with different containers. You cannot and should not use these two components on the same form. They are specifically designed that way and they are not compatible. In your scenario you have two UltraToolbarsManager in your Form (one from parent form and another one from child form)
I suppose that maybe you are looking for Merging functionality of UltraToolbarsManager, but it that case you should have MDI Container Form and MDI Child Form. More details you could find in our online documentation :
http://help.infragistics.com/Help/Doc/WinForms/2013.2/CLR4.0/html/WinToolbarsManager.html
http://help.infragistics.com/Help/Doc/WinForms/2013.2/CLR4.0/html/WinToolbarsManager_MDI_Toolbar_Merging.html
Let me know if you have any questions.
My structure is little different.
I don't have ribbon but I have tools placed on ultratoolbar itself.
Here is my attached screenshot.
The mentioned behavior is expected for such scenario, but one possible solution could be if you set different KeyTips to your Groups, Tabs and tools. Please take a look on attached video file for more details and if you have any questions, feel free to write me
Thanks for you reply.
Yes that's almost similar to my application. but now when you hit Alt key you can see that on both ribbon it shows R so when I hit R it focus on second tool bar manager and when I hit I it doesn't focus first toolbar. so there is no way to focus first toolbar.
Here is the sample