Writing event handlers

Up to this point, you've developed your application without writing a single line of code. By using the Object Inspector to set property values at design time, you've taken full advantage of the Kylix RAD environment. In this section, you'll write procedures called event handlers that respond to user input while the application is running. You'll connect the event handlers to the items on the menus and toolbar, so that when an item is selected your application executes the code in the handler....

Creating an About box

Many applications include an About box which displays information on the product such as the name, version, logos, and may include other legal information including copyright information. You've already set up a Help About command on the action list. To create an About box 1 Choose File New Other to display the New Items dialog box and click the Forms tab. 2 On the Forms tab, double-click About Box. A predesigned form for the About box appears. 3 Select the grid itself click the grid portion...

Adding a toolbar

Since you've set up actions in an action list, you can add some of those actions to a toolbar. I 1 On the Common Controls tab of the Component palette, double-click the ToolBar '' component to add it to the form. A blank toolbar is added under the main menu. With the toolbar still selected, change the following properties in the Object Inspector Set the Indent property to 4. This indents the icons 4 pixels from the left of the toolbar. Set the Images property to ImageListl. Set the ShowHint...