I have a Form, which has a MDI child, which in turn has a user control which has an UltraToolBarsManager. I had assigned Shortcuts for the menu items. When i use the Shortcut, they are not working. But when the usercontrol containing the UltraToolBarsManager is having the Focus, the shortcut works. Is it possible to make the Shortcut work in all cases?
Note:
1. The parent form doesn't have any Menu item.
2. Currently i had patched by capturing 'ctrl' click and setting the focus to the usercontrol containing the UltraToolBar. It works but, I've lost general ctrl+c and ctrl+v behavior for the form.
Hello Sandeeptc,
As far as I know this is expected behavior for such scenarios. Maybe one possible approach to achieve the desire behavior of your shortcuts could be to add an UltraToolbarManager (without any tools) at your Main form – the form which is MDI container. Then add second UltraToolbarManager, but in your MDIChild form which contains your UserControl. Doing so you would be able to use menu tools merging and your shortcuts will work regardless of the control which currently has focus.
Please take a look at the attached sample for more details. Please if you have any questions, do not hesitate to ask me.
Regards
Hallo Georgi,
we are using the version 2009.2 with OpenEdge 10.2B and we have other problem. I made some 2 Forms like in your example. The shortcuts works only if the Form is docked in MdiContainer. When is the Child undocked, are the shortcuts still defined, but there is no reaction. When I run only ChildForm without MdiContainer, works the shortcuts fine.
Do you have any idea, why it is so behaves?
Hello Firhang,
I`m not sure what you mean with “When is the child undocked…”, but If you are talking about windows state, in my test sample the shortcuts works nevertheless of the windows state. Please take a look at the attached video file. Could you please tell me what is your current build. Please note that that latest build for version 9.2 is 9.2.20092.2119. You could download it from our site: Infragistics.com -> MyIG -> My Keys and Downlaods
Please if you have any questions, do not hesitate to write me
Of course I can bring you a example. It is C#, .Net 2.0 and Infragistics 2009.2.
Thanks for attached sample. The mentioned behavior is expected, because you set property MdiParent = null; of your MDIChild form. Could you please take a look at the modifications that I made in your sample and let me know if you have any questions.
but this make a new instance from form, which was in container. We need the same instance, that we don't forget the datas and links to other objects.
Can you please give us other sample, where is produced any new instance?