Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

PB Docs 125 – Page 509 – PowerBuilder Library

PB Docs 125

Sorting items – PB Docs 125

Sorting items A TreeView can sort items automatically, or you can control sorting manually. Manual sorting can be alphabetic by label text, or you can implement a user–defined sort to define your own criteria. The SortType property controls the way items are sorted. Its values are of the enumerated datatype grSortType. Automatic alphabetic sorting To…

Moving items using drag and drop – PB Docs 125

Moving items using drag and drop At the window level, PowerBuilder provides functions and properties for dragging controls onto other controls. Within the TreeView, you can also let the user drag items onto other items. Users might drag items to sort them, move them to another branch, or put child items under a parent. When…

Managing TreeView items – PB Docs 125

Managing TreeView items An item in a TreeView is a TreeViewItem structure. The preceding section described how to set the item’s properties in the structure and then insert it into the TreeView. This code declares a TreeViewItem structure and sets several properties:

For information about Picture properties, see “Managing TreeView pictures”. When you insert…

Renaming items – PB Docs 125

Renaming items If you enable the TreeView’s EditLabels property, the user can edit an item label by clicking twice on the text. Events There are two events associated with editing labels. The BeginLabelEdit event occurs after the second click when the EditLabels property is set or when the EditLabel function is called. You can disallow…

Populating TreeViews – PB Docs 125

Populating TreeViews You must write a script to add items to a TreeView. You cannot add items in the painter as with other list controls. Although you can populate all the levels of the TreeView at once, TreeView events allow you to populate only branches the user looks at, which saves unnecessary processing. Typically, you…

Using the Code Examples application – PB Docs 125

Using the Code Examples application You run the Code Examples application from the development environment. To run the Code Examples application: Select File>New from the menu bar, select Workspace from the Workspace tab, and click OK. Navigate to the PowerBuilder 12.5Code ExamplesExample App folder, type a name for the workspace, and click Save. Select Add…

About window instances – PB Docs 125

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…

Using lists – PB Docs 125

Using lists You can use lists to present information to the user in simple lists with scroll bars. 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…

Using Lists in a Window – PB Docs 125

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 lists Using drop-down lists Using ListView controls Document get from Powerbuilder help Thank you for watching.

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…