CHAPTER 3 CREATING AN APPLICATION S USER INTERFACE (How to cite a web site)

CHAPTER 3 CREATING AN APPLICATION S USER INTERFACE Adding Controls to Windows As you already saw in previous examples, you can add controls to application windows by dragging-and-dropping them. You can also add controls by double-clicking them. When you do this, REALbasic adds a copy of the control to the window, leaving it up to you to change its location and size, as appropriate. Tip You can also add controls to your REALbasic applications by right-clicking the background of a window, and then selecting the Add option from the contextual menu that appears. REALbasic responds by displaying a list of objects you can add to the window. You can also add a control to your application windows by clicking the control to select it, and then using the pointer to draw the area where you want the control placed. The advantage of using this technique is this: it not only places the control where you want it, but it also resizes the control to fit the area you drew. Tip If you need to add more than one instance of the same control to a window, such as when adding multiple CheckBox or RadioButton controls, you can add each type of control one time, and then duplicate each control as many times as necessary. You do this by selecting a control, and then selecting Edit . Duplicate. Finding Lost Controls As you design your windows by adding and modifying controls, controls can sometimes disappear. This can happen if you place one control over the top of another. This can also happen if you add a control to a window, and then accidentally modify its Top and Left properties with a negative value, causing the control to be removed from view. You can view a listing of all the controls that were added to a window by right-clicking the window where the control resides and clicking Select, followed by the control you are looking for. Once selected, you can modify the control s properties as necessary to bring it back into view. Modifying Control Properties You can modify control properties in several ways. One is to programmatically modify them from within program code. Another is to physically move or resize the control within a window. A third option is to modify control properties displayed within the Properties pane after the control is selected.
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

Leave a Reply