Iyonix Select Acorn RISCOS 4 Home About Toolbox Examples Maillist Downloads
AppBasic

Toolbar


General
ResEd
Objects
Components
Events
Methods
Modules

Toolbox components

A 'component' defines one of a set of distinct parts which make up an object. The two most important examples are menu entries and window gadgets (action buttons, radio buttons, writable icons, etc.). When a component is being added to the a template, the user assigns an integer, known as the component id by which to identify it. Component ids are unique within its containing object.

Gadgets

The following example shows how to add an action button to a Window object.
gadget/gif
  1. Double-click the window's template (to display an 'edit' copy of the window)
  2. Popup the window's menu and select the “Gadgets” entry (to display the gadgets prototype window)
  3. Drag an action button from the prototypes display onto the window (position it in the window by dragging)
You can change the component id which ResEd assigns. This is done via the edit dialogue box - opened by double-clicking the gadget (in the edit-window).

Menus

Menus are constructed in a similar way to gadgets:
1 Double-click the menu's template (to display an 'edit' representation of the menu)
menu/gif
2 Popup the representation's menu and select the “Menu entries...” entry (to display the Menu entries prototype window)
menuedit/gif
3 To add a new entry to the menu, drag an icon from the prototypes display onto the edit-menu