Powerbuilder Documentation 12.5

Using drop-down lists – PB Docs 125

Using drop-down lists Drop-down lists are another way to present simple lists of information to the user. You can present your lists with just text (in a DropDownListBox) or with text and pictures (in a DropDownPictureListBox). You add DropDownListBox and DropDownPictureListBox controls to windows in the same way you add other controls: select DropDownListBox or…

About presenting lists – PB Docs 125

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 report view – PB Docs 125

Using report view ListView report view requires more information than the large icon, small icon, and list view. To enable report view in a ListView control, you must write a script that establishes columns with the AddColumn and SetColumn functions, and then populate the columns using the SetItem function. Populating columns Use AddColumn to create…

Drag-and-drop properties, events, and functions – PB Docs 125

Drag-and-drop properties, events, and functions Drag-and-drop properties Each PowerBuilder control has two drag-and-drop properties: DragAuto DragIcon The DragAuto property DragAuto is a boolean property. Table 10-1: DragAuto property values Value Meaning TRUE When the object is clicked, the control is placed automatically in drag mode FALSE When the object is clicked, the control is not…

About drag and drop – PB Docs 125

About drag and drop Drag and drop allows users to initiate activities by dragging a control and dropping it on another control. It provides a simple way to make applications graphical and easy to use. For example, in a manufacturing application you might allow the user to pick parts from a bin for an assembly…

Getting information about variables – PB Docs 125

Getting information about variables This section has code fragments illustrating how to get information about variables from a ClassDefinition object called cd_windef. For examples of assigning a value to cd_windef, see “Getting a class definition object”. List of variables Variables associated with a class are listed in the VariableList array of the ClassDefinition object. When…

Managing TreeView pictures – PB Docs 125

Managing TreeView pictures PowerBuilder stores TreeView images in three image lists: Picture list (called the regular picture list here) State picture list Overlay picture list You add pictures to these lists and associate them with items in the TreeView. Document get from Powerbuilder help Thank you for watching.

Using DataWindow information to populate a TreeView – PB Docs 125

Using DataWindow information to populate a TreeView A useful implementation of the TreeView control is to populate it with information that you retrieve from a DataWindow. To do this your application must: Declare and instantiate a DataStore and assign a DataWindow object Retrieve information as needed Use the retrieved information to populate the TreeView Destroy…