Specifying column definitions – PB Docs 125
Specifying column definitions When you create a new table, you must specify a definition for each column. The fields that display for each column in the Columns view depend on your DBMS. You might not see all of the following fields, and the values that you can enter are dependent on the DBMS. For more…
Printing with newspaper-style columns – PB Docs 125
Printing with newspaper-style columns When you define a DataWindow object, you can specify that it print in multiple columns across the page, like a newspaper. A typical use of newspaper-style columns is a phone list, where you want to have more than one column of names on a printed page. Use Print Preview to see…
EditMask – PB Docs 125
EditMask Sometimes users need to enter data that has a fixed format. For example, U.S. and Canadian phone numbers have a three-digit area code, followed by three digits, followed by four digits. You can use an EditMask control that specifies that format to make it easier for users to enter values. Think of an EditMask…
How text size is stored – PB Docs 125
How text size is stored A control’s text size is specified in the control’s TextSize property. PowerBuilder saves the text size in points, using negative numbers. For example, if you define the text size for the StaticText control st_prompt to be 12 points, PowerBuilder sets the value of st_prompt‘s TextSize property to–12. PowerBuilder uses negative…
Specifying Default and Cancel buttons – PB Docs 125
Specifying Default and Cancel buttons You can specify that a CommandButton is the default button in a window by selecting Default in the General property page in the button’s Properties view. When there is a default CommandButton and the user presses the Enter key: If the focus is not on another CommandButton, the default button’s…
Specifying window scrolling – PB Docs 125
Specifying window scrolling If your window is resizable, it is possible that not all the window’s contents will be visible during execution. In such cases, you should make the window scrollable by providing vertical and horizontal scroll bars. You do this on the Scroll property page. By default, PowerBuilder controls scrolling when scroll bars are…
Working with Controls – PB Docs 125
Working with Controls About this chapter Users run your application primarily by interacting with the controls you place in windows. This chapter describes the use of controls. Contents Topic About controls Inserting controls in a window Selecting controls Defining a control’s properties Naming controls Changing text Moving and resizing controls Copying controls Defining the tab…
Selecting a toolbar style – PB Docs 125
Selecting a toolbar style You select a toolbar style on the Appearance tab of the Properties view for the top-level menu object in the Menu painter. A toolbar can have a contemporary or traditional style. Menu style Description Contemporary A 3D-style toolbar similar to Microsoft Office 2003 and Visual Studio 2005 toolbars Traditional A more…
Building user objects – PB Docs 125
Building user objects You can build a user object from scratch, or you can create a user object that inherits its style, events, functions, structures, variables, and scripts from an existing user object. For information on building a user object from scratch, see “Building a new user object “. To find out more about creating…
About inheritance – PB Docs 125
About inheritance One of the most powerful features of PowerBuilder is inheritance. It enables you to build windows, user objects, and menus that derive from existing objects. Using inheritance has a number of advantages: When you change an ancestor object, the changes are reflected in all the descendants. You do not have to make manual…