Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 23 MAY 2003 12:51:08PM matt bavis wrote:

I have a MDI Frame that calls several data entry forms as MDI children. The MDI Frame has my control buttons (save, exit, etc.). My save button's text is &Save. When a child window is open I can no longer use ALT + s to execute the click event for the save button. The "ALT+S" seems to be getting sent to the child form. Is there an easier way to send this "ALT+S" to the MDI fram even when a child is open.

I was thinking about placing duplicate copies of the MDI Frame buttons hidden on each MDI child, and they should capture the "ALT+S", and then have them send a click event to the buttons on the MDI Frame, but I wanted to see if there were any ideas out there or a feature already in the system that I could take advantage of.

Thanks,

Matt


At 23 MAY 2003 05:15PM Oystein Reigem wrote:

Matt,

You might want to consider using Ctrl+S instead of Alt+S. Ctrl+S is the standard shortcut for Save.

But Ctrl+S must be a shortcut to a menu item, not a button. So you must have menus in addition to buttons. Which is a good thing, really, and according to standards.

And talking about standards - you might want F9 as a shortcut for Save too. In my MDI-based app I have both F9 and Ctrl+S as shortcuts for Save. My frame has

- a File | Save menu item with a shortcut F9

- a hidden File | Save2 menu item with a shortcut Ctrl+S

- a Save button which sends a MENU event to the File | Save menu item.

Further: A menu items automatically shows which shortcut it has got. To get my File | Save menu item to show not only "F9" but also "Ctrl+S" I cheat a little and let the menu text be not just "Save" but "Save Ctrl+S".

- Oystein -

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/9cf36404b4dc333785256d2f005c92c2.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1