Consultor Eletrônico



Kbase 13748: Difference between Insert and New Menu Element
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Difference between Insert and New Menu Element

The only real difference between "Insert" and "New Menu Element"
is that "New Menu Element" is a DEFAULT-BUTTON. It fires
automatically when you use the Return Key in the Label field. The
purpose of this feature is that you can enter an entire menu without
using the mouse.

One of the design requrirements for this dialog was the
ability to type:
Cut <return>
Copy <return>
Paste <return>
and have the whole menu created.

The Motif style guide required that we have a DEFAULT-BUTTON
for the frame if we were going to support the feature. Originally
it was called "Auto-Insert" but it was then changed to New Menu
Element.

You will note that New Menu Element becomes the default-button
for the dialog only when the Label field has Focus. Otherwise,
the OK button is the Default.

The Insert button was kept for "symmetry". That is, many people
would look for Insert beside the Delete key.

Another Comment:
- Did you know that Alt-Cursor-Left and Alt-Cursor-Right
act as shortcut keys to indent menu-items. (That is, they serve
the same purpose as >> and <<)
- Also, Alt-Cursor-Up and Alt-Cursor-Down will move menu-items
up and down.

Progress Software Technical Support Note # 13748