2.243 .order

With the help of this attribute the order of menus and menu commands can be defined. The menus or menu commands are sorted in order of increasing .order values in menuboxes from top to bottom and in windows from left to right. For equal values, the definition order decides.

The attribute is only supported by the IDM für Windows.

Definition

  • Data type

    integer

  • Access

    get, set

  • changed event

    no

When grouping menuitems of the radiobutton style, if an active item changes the group by changing the .order value, this item remains active and the item previously active in this group is deactivated. This is also to be considered when creating menus statically.

It’s a good idea to stick to the Microsoft conventions for mixed menu bars when assigning .order values. With the InPLace representation of ActiveX controls, mixed menu bars are composed of the container and control menus. The conventions provide fixed values for certain groups of menuboxes, namely:

File

0

Edit

1

Container

2

Object

3

Window

4

Help

5

The groups 0, 2 and 4 are taken over from the container and groups 1, 3 and 5 from the ActiveX control into the common menu bar.

Although the IDM does not support mixed menu bars, the Microsoft conventions should be taken into account when using the InPlace representation of ActiveX controls .

Note

It is quite common for a menu group to consist of several menus, e.g. the menu group Edit may consist of Edit and Search (with TextPad).