Powerbuilder Documentation 8.0

Powerbuilder Documentation 8.0

Providing toolbars – PB Docs 80

Providing toolbars To make your MDI application easier to use, you can add toolbars with buttons that users can click as a shortcut for choosing an item from a menu. You can associate a toolbar with the MDI frame and a toolbar with the active sheet. This screen shows New, Print, and Exit buttons on…

Chapter 34 Building InfoMaker Styles and Actions – PB Docs 80

Chapter 34 Building InfoMaker Styles and Actions About this chapter This chapter explains how to build styles in PowerBuilder and provide them to InfoMaker users. Contents Topic About form styles Naming the DataWindow controls in a form style Building and using a form style Modifying an existing style Building a style from scratch Completing the…

Advanced printing techniques – PB Docs 80

Advanced printing techniques Creating complex reports in PowerBuilder requires the use of additional functions but is relatively easy. You can use PowerScript functions to define fonts for a job, specify fonts and line spacing, place objects on a page, and specify exactly where you want the text or object to be placed. Defining and setting…

Handling row errors – PB Docs 80

Handling row errors When a pipeline executes, it may be unable to write particular rows to the destination table. For instance, this could happen with a row that has the same primary key as a row already in the destination table. Using the pipeline-error DataWindow To help you handle such error rows, the pipeline places…

OLE custom controls – PB Docs 80

OLE custom controls The OLE control button in the Controls menu gives you the option of inserting an object or a custom control in an OLE container. When you select an OLE custom control (ActiveX control), you fix the container’s type and contents. You cannot choose later to insert an object and you cannot select…

Providing online Help for developers – PB Docs 80

Providing online Help for developers Two ways to provide Help There are two ways to integrate online Help for your user-defined functions, user events, and user objects into the PowerBuilder development environment: The User button in the PowerBuilder main Help window is hardcoded to launch a file named PBUSR90.HLP: Context-sensitive Help for user-defined functions can…

Using tabs – PB Docs 80

Using tabs The Print function has several formats. The format shown on the preceding page prints a string starting at the left edge of the print area and then prints a new line. In other formats of the Print function, you can use tabbing to specify the print cursor position before or after printing, or…

Invoking another server component’s methods – PB Docs 80

Invoking another server component’s methods EAServer allows the methods of one server component to call methods of another server component. The other server component does not need to be another PowerBuilder component; it can be implemented in any language supported by EAServer. Accessing a component in the current server To access methods of another EAServer…

Creating and using a named server – PB Docs 80

Creating and using a named server Using your own named server involves these steps: Define the objects you will access. Build the runtime libraries for those objects. Register your server in the registry. Write code in the client that connects to your server, creates objects, and accesses their methods and properties. Creating the user objects…

Generating EAServer proxy objects – PB Docs 80

Generating EAServer proxy objects About EAServer proxy objects Each EAServer component has a corresponding proxy object in the client application. To access an EAServer component, you need to communicate through the EAServer proxy. An EJB component has two corresponding proxy objects in the client application–one for the home interface and one for the remote interface….