Using ANSI C (Part 6)
by Lee Calcraft

This is an example of a Wimp application written in C. When run, the program adds an icon to the icon bar. Clicking Select on this icon causes a beep to be generated. Clicking Menu over the icon displays a menu containing the usual Info and Quit options, plus a Test option.

The Test option leads to a submenu containing three entries. Choosing Test1 causes a tick to be toggled on and off. Choosing Test2 has no effect. The third entry, Search, leads to a dialogue box containing a writable icon, an option (on/off) icon entitled 'Case sens', an action icon entitled 'OK', an icon entitled 'Previous' and 3 radio icons 'Opt-1', 'Opt-2' and 'Opt-3' (which are this month's addition).

The radio icons are all in the same ESG, so selecting one cancels the others. Adjust acts in the same way as Select, so not all the icons can be off at the same time.

The application's source code is saved as !C_Demo.C_Source.
