PB Docs 90

Web DataWindow on COM+/MTS or IIS – PB Docs 90

Web DataWindow on COM+/MTS or IIS You can run the Web DataWindow server component on a Microsoft Transaction Serveror COM+ using either PowerDynamo or ASP as the page server. You can also run the Web DataWindow on a Microsoft IIS application server. Files required on the COM+/MTS or IIS server Two types of files are…

Chapter 5 Building an MDI Application – PB Docs 90

Chapter 5 Building an MDI Application About this chapter This chapter describes how to build a Multiple Document Interface (MDI) application in PowerBuilder. Contents Topic About MDI Building an MDI frame window Using sheets Providing MicroHelp Providing toolbars Sizing the client area About keyboard support in MDI applications Document get from Powerbuilder help Thank you…

About MDI – PB Docs 90

About MDI Multiple Document Interface (MDI) is an application style you can use to open multiple windows (called sheets) in a single window and move among the sheets. To build an MDI application, you define a window whose type is MDI Frame and open other windows as sheets within the frame. Most large-scale Windows applications…

Building an MDI frame window – PB Docs 90

Building an MDI frame window When you create a new window in PowerBuilder, its default window type is Main. Select mdi! or mdihelp! on the General property page to change the window to an MDI frame window. Using menus When you change the window type to MDI, you must associate a menu with the frame….

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

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…

Populating TreeViews – PB Docs 90

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…

Managing TreeView items – PB Docs 90

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…

Managing TreeView pictures – PB Docs 90

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. Pictures for items There are several ways to use pictures in a TreeView. You associate a…

Using DataWindow information to populate a TreeView – PB Docs 90

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…

About Tab controls – PB Docs 90

About Tab controls A Tab control is a container for tab pages that display other controls. One page at a time fills the display area of the Tab control. Each page has a tab like an index card divider. The user can click the tab to switch among the pages: The Tab control allows you…