Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1650
UltraDateTimeEditor Tooltip Hotkeys Buttons
posted

Is it possible to set a hotkey and tooltip on the buttons in the buttons left or buttons right collection?

  • 469350
    Offline posted

    Hi,

    EditorButtons do not have any HotKey support. The buttons themselves do not take focus. You could, of course, use a toolbar like UltraToolbarsManager to have your application respond to certain keys any way you want by setting up a tool with a shortcut. Then you could call the same code from the Tool_Click and from the editor button click. 

    Or you could limit the key support by using the UltraDateTimeEditor's KeyPress event.

    There is no built-in tooltip support for the individual editor buttons, either, but a common technique would be to use the MouseMove event of the control and change the tooltip for that control based on the current location of the mouse. You would use the UIElement.ElementFromPoint method to determine what part of the control the mouse is over.