Chapter 11: Working with Controls  Inserting controls in a window

Chapter 11: Working with Controls

About controls

About window controls

You place controls in a window to request and receive information from the user and to present information to the user. For a complete list of standard window controls, open a window in the Window painter and select Insert>Control.

If you often use a control or set of controls with certain properties, such as a group of related radio buttons, you can create a visual user object that contains the control or set of controls. For more about user objects, see Chapter 14, “Working with User Objects.”

About events

All window controls have events so that users can act on the controls. You write scripts that determine the processing that takes place when an event occurs in the control.

Drawing objects are usually used only to make your window more attractive or to group controls. Only constructor and destructor events are defined for them, but you can define your own events if needed. The drawing objects are Line, Oval, Rectangle, and RoundRectangle.





Copyright © 2004. Sybase Inc. All rights reserved. Inserting controls in a window

View this book as PDF