The Foundations of Digital Signal Processing: Theory, Algorithms and Hardware Design

3.5: Adding Some Functionality

3.5 Adding Some Functionality

So far, our program does not do anything interesting. Now we shall add some very simple functionality, by placing a few visual components on the form and writing some code.

  1. Start a new project, and call the form adder_form.pas and the project adder_project.dpr. Change the form s name to Adder Program.

  2. Move the mouse cursor to the component palette and make sure the Standard tab is visible. Click on the component button whose hint says Edit this is an edit box; note that the button stays down.

  3. Now move the cursor back to a suitable place on the form and left-click the mouse once. An edit box appears on the form, labelled Edit1.

  4. Repeat this with two other edit boxes, placing them one below the other. (Hint: normally, the button for a component is released once it has been placed on the form. This can be a little tiresome if you need to position several components of the same type. To obviate this, keep the Shift key down whilst selecting a component. Now, an instance of that component will be placed on the form each time you click on it. To release the selection, click on the cursor arrow icon on the component palette.)

  5. Next, select a standard button from the component palette, and place it below the lowest edit box. Resize it so that it is the same length as the edit boxes. You can do this either...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Computer Mice and Pointing Devices
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.