I have an MDI application. In some of my child windows, I have XPToolbar at the top of my child window. It has some buttons (BarItems) like Find, Print etc. I have set the findBarItem.Shortcut = ShortCut.CtrlF. It is not invoking my findBarItem Click handler? Is there any way to get this to work?
RPRamesh Praveen Syncfusion Team August 1, 2003 12:43 PM
You could do this:
1) Override ProcessCmdKey in the parent control of the XPToolBar. If the parent is a Panel then you will have to derive a custom class from Panel, override ProcessCmdKey and use that Panel.
2) In the ProcessCmdKey override, delegate the call to the corresponding XPToolBar's ProcessCmdKey and return that value.
3) The shortcuts will now work whenever the focus is within that Panel.
Do let us know if this works and if you need more assistance.
ADAdministrator Syncfusion Team August 4, 2003 11:29 AM
My control is derived from User control. It worked after I have overridden the ProcessCmdKey() method.