AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database

Syntax:     typedef int ComponentId;

The ComponentId of a gadget is the code that the toolbox will provide when an action has been carried out on the gadget by the user.  This allows the program to 'know' when an action has been carried, e.g. an action button has been clicked.  The ComponentId can also be used directly by the program, to clear display fields etc.

ComponentId's are declared in !ResEd  Each component in a program can have a specified id defined as a hex number.  These can then have names assigned to them to make reading code easier:

 A writable icon has a ComponentId of 0x100.  It can then be named as #define writable_icon 0x100 in your C program.

[sh-index] Back to list of manuals