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.
Hi,
Thanks for reply.you mentioned that we can get a focus on first tool by txtMemberID.SharedProps.ToolInstances[0],
what is txtMemberID in this one?
I have ultratoolbar manager on Base form.
I am able to focus on the first tool but now when i am trying to use right arrow key to move focus it's not moving.
Hello Saurabh,
Could you please upload small sample that reproduce your issue and I`ll be glad to research it for you. Also let me know what is your current version.
If you have any questions, feel free to write me
I am not ale to recreate sample application. but scenario is simple.
There is one parent form and one child form. Parent form has it's own toolbar and child form has one. Now I inherits child form from parent. So now I can see both toolbars on child form while running application. however with alt key it doesn't focus on both toolbars.
I am using version 13.1.20131.2060.
Hi Saurabh,
First of all, could you please create your own forum threads for each issue instead of using old threads, because we are not able to follow up the old threads and it is possible to missed your questions.
About the issue: I try to reproduce your scenario in a small sample and everything seems to works properly (nevertheless that I do not understand this scenario). Please take a look on attached sample and if you think that I didn`t reproduce your scenario feel free to modify this sample to reproduce your issue and revert it back to me. I`ll be glad to research it for you
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
Regards
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