Powerbuilder User Guide

Changing text – PB Docs 70

Changing text There are two ways to manipulate text for a control: Use the Properties view tab pages to specify text and font for a control Use the Window painter StyleBar to change: The text itself The font, point size, and characteristics such as bold The alignment of text within the control (except that text…

About user events – PB Docs 70

About user events Windows, user objects, controls, menus and Application objects each have a predefined set of events. In most cases, the predefined events are all you need. But there are times when you want to declare your own user event. You can use predefined event IDs to trigger a user event, or you can…

Defining user events – PB Docs 70

Defining user events In PowerBuilder, you can define both mapped and unmapped user events for windows, user objects, controls, menus, and the Application object. When you add a new event, a Prototype window displays above the script area in the Script view. Most of the fields in the Prototype window are the same as when…

Using a user event – PB Docs 70

Using a user event Once you define a user event, you must write the script that PowerBuilder will execute when that user event is triggered. If it is an unmapped user event, you also write the code that will trigger the user event. Writing the script User events display in alphabetical order in the Event…

Working with tools – PB Docs 70

Working with tools PowerBuilder provides you with a variety of tools to help you with your development work. Opening a tool There are several ways to open tools. To open a tool: Click a button in the PowerBar for the tool you want. or Select the tool from the Window menu. You can also open…

About user-defined functions – PB Docs 70

About user-defined functions The PowerScript language has many built-in functions. But you may find that you need to code the same procedure over and over again. For example, you may need to perform a certain calculation in several places in an application or in different applications. In such a situation, you will want to create…

Defining user-defined functions – PB Docs 70

Defining user-defined functions Although you define global functions in the Function painter and object-level functions in the painter for a specific object, in both cases you define and code the function in a Script view. When you add a new function, a Prototype window displays above the script area in the Script view. The fields…

Modifying user-defined functions – PB Docs 70

Modifying user-defined functions You can change the definition of a user-defined function at any time. You change the processing performed by the function by simply modifying the statements in the Script view. You can also change the return type, argument list, or access level for a function. To change a function’s return type, arguments, or…

Using your functions – PB Docs 70

Using your functions You use user-defined functions the same way you use built-in functions. You can call them in event scripts or in other user-defined functions. For complete information about calling functions, see Application Techniques . Pasting user-defined functions When you build a script in the Script view, you can type the call to the…

About windows – PB Docs 70

About windows Windows form the interface between the user and a PowerBuilder application. Windows can display information, request information from a user, and respond to the user’s mouse or keyboard actions. A window consists of: Properties, which define the window’s appearance and behavior (for example, a window might have a title bar or a Minimize…