Hi,
On a windows form, I have one main toolbar which is docked to the form. The shortcuts on this toolbar are functioning fine. However there is another toolbar in this form, that is docked within a grid page. This inner tool bar shortcuts are not functioning. I made sure they don't have the same shortcut values as the main toolbar. Yet for some reason even the 'BeforeShortCutKeyProcessed ' is not being called for the inner tool bar. Please advise if there's any settings for this to work.
Thanks
I was not able to reproduce this. Can you post a simple sample demonstrating the problem?
Alright, I have attached a sample project. It has a form with two toolbars. The shortcut in the top toolbar for buttons SAVE, MODIFY, CLOSE function. whereas the shortcut for the inner toolbar that has HELLO button does not function. Please give your suggestions.
It looks like this is due to the face that the DockWithinContainer of the UltraToolbarsManager is the shared controls page of the UltraTabControl. If you change the DockWithinContainer to tbcDemo1, the shortcut works. This is probably a bug. I have forwarded this post to the Developer Support Manager and a DS engineer will be contacting you about this issue.
I have created the following support ticket CAS-47592-T02FTK, where I will inform you about the progress of this issue.
Regards,
- Stefaniya
To resolve the issue specified in this thread, I updated the dockwithincontainer property of the toolbar on Selected tab change event. The shortcuts started working fine after that. For some other purpose there were a certain tabs for which I was setting the enabled property of the toolbar to False.
However after several months, I noticed that changing the dockwithincontainer property of the toolbar at run time is overriding the 'enabled = false' for toolbar thereby causing the toolbar to be enabled where it is not supposed to be. Please recommend if you have any solution to resolve this issue.
Thank You
This appears to be a bug. I will forward this to the DS Manager to create a bug report on your behalf. In the meantime, you can easily work around this issue by setting the UltraToolbarsManager.Enabled property to True and then back to False again after the DockWithinContainer has been changed.
Mike,
I already tried doing that...setting the .Enabled property to False after DockWithinContainer has been changed. Surprisingly, even though this property is set to False for the toolbar, I see the toolbar and all the tools in it enabled and active. This is not the case when I skip this line - 'change DockWithinContainer' while I'm in the debug mode.
You cannot just set the property to False again. Like I said, you must set the property to True first and then back to False.