Using Menu Items

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


You can procedurally gain access to a 4D Draw menu and select a menu item (command). In a procedure, you can determine the status of a menu or menu item. Each menu item is referenced by a unique integer.

Menu item integers are generally based on the location of the menu and menu item. The menus are numbered from left to right in ascending order. For example, File = 1000 and Edit = 2000. Likewise, menu items are numbered in ascending order from top to bottom. Therefore, the New menu item is numbered 1001, because it is the first item on the first menu, File.

The numbers of these menu items always remain the same, even in future versions in which new menu items may be added. Any new menu items will use different numbers, even if they are placed between current menu items. This placement will invalidate the general rule of numbering menu items, but the menu references used in methods will remain accurate, so you will not need to update them.

See Appendix F, Command Codes for a listing of menu item code integers as well as codes used by the 4D Draw Tool Palette.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next