Examining a class definition – PB Docs 80
Examining a class definition This section illustrates how to access a class definition object and how to examine its properties to get information about the class, its scripts, and its variables. Getting a class definition object To work with class information, you need a class definition object. There are two ways to get a ClassDefinition…
About window instances – PB Docs 80
About window instances When you build an application, you may want to display several windows that are identical in structure but have different data values. For example, you may have a w_employee window and want to display information for two or more employees at the same time by opening multiple copies (instances) of the w_employee…
Declaring instances of windows – PB Docs 80
Declaring instances of windows Because a window is actually a data type, you can declare variables of that data type, just as you can declare integers, strings, and so on. You can then refer to those variables in code. For example:
1 |
w_employee mywin |
declares a variable named mywin of type w_employee. Limitation of using variables When…
Chapter 8 Using Lists in a Window – PB Docs 80
Chapter 8 Using Lists in a Window About this chapter This chapter describes how to use lists to present information in an application. Contents Topic About presenting lists Using listboxes Using dropdown listboxes Using ListView controls Document get from Powerbuilder help Thank you for watching.
About presenting lists – PB Docs 80
About presenting lists You can choose a variety of ways to present lists in your application: ListBoxes and PictureListBoxes display available choices that can be used for invoking an action or viewing and displaying data. DropDownListBoxes and DropDownPictureListBoxes also display available choices to the user. However, you can make them editable to the user. DropDownListBoxes…
Using listboxes – PB Docs 80
Using listboxes You can use listboxes to present information to the user in simple lists with scrollbars. You can present this information with text and pictures (in a PictureListBox) or with text alone (using a ListBox). Depending on how you design your application, the user can select one or more list items to perform an…
Using sheets – PB Docs 80
Using sheets In an MDI frame window, users can open windows (sheets) to perform activities. For example, in an electronic mail application, an MDI frame might have sheets that users open to create and send messages and read and reply to messages. All sheets can be open at the same time and the user can…
Providing MicroHelp – PB Docs 80
Providing MicroHelp MDI provides a MicroHelp facility that you can use to display information to the user in the status area at the bottom of the frame. For example, when the user selects a menu item, the MicroHelp facility displays a description of the selected item in the status area. You can define MicroHelp for…
About the sample applications – PB Docs 80
About the sample applications PowerBuilder provides sample applications with source code so you can learn and reuse the techniques used in the samples. Code examples One of the sample applications, PowerBuilder Code Examples, contains many examples you can use to learn a range of coding techniques. The examples are specifically designed to show you how…
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…