The IDE Continued

You use the IDE to build your program. There are 3 main things that you do using the IDE.

1. Build your program's interface

2. Add code to objects

3. Modify object properties

Let's look at each of these.
1. Building your program's interface:
You create your program's interface by dragging objects from the Controls Palette to a window.

Add objects (controls) to a window by dragging them from the Controls Window to a window.

2. Add code to objects
To add code to an object double-click the object on the interface window. The code editor for the window opens and displays the events that the object can respond to.

To program an object's response to an event click on the event name in the code editor window. The Action event has been clicked above and code has been put into that event for PushButton1

About the Code Editor Window: In the Code Editor window there are six sections:
Controls: In the Controls section all of the objects (controls) that you have dragged from the Controls Palette onto the window will be listed. Here is where you can program the objects to respond to events.
Events: These are the events that the window itself can respond to. You can put code into these events too.
Menu Handlers: If you have added menu items such as "Save", "Print", "Open", etc. you will need to tell the window what to do if a user chooses one of these menu options. The code for menu items goes in this section.
Methods: You can add subroutines and functions here. (Don't worry at this point if you don't know what these are.)
Notes: In this section you can keep notes on your project. To add a note choose New Note from the Edit menu. A Code Editor window must be open for this menu item to be available.
Properties: You can add properties to the window in this section. (We will discuss this later.)

IDE continued,,,