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
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.
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.
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.
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
I have created the following support ticket CAS-47592-T02FTK, where I will inform you about the progress of this issue.
Regards,
- Stefaniya