Using ListView controls – PB Docs 80
Using ListView controls A ListView control allows you to display items and icons in a variety of arrangements. You can display large icon or small icon freeform lists, or you can display a vertical static list. You can also display additional information about each list item by associating additional columns with each list item: ListView…
Referencing entities in descendants – PB Docs 80
Referencing entities in descendants When you declare a variable whose data type is a kind of object, such as a window, you can use the variable to reference any entity defined in the object, but not in one of its descendants. Consider the following code:
|
1 |
w_customer mycust |
|
1 |
|
1 |
Open(mycust) |
|
1 |
// The following statement is legal if |
|
1 |
// w_customer window has a st_name control. |
|
1 |
mycust.st_name.text = "Joe" |
Mycust is declared as a variable of type w_customer…
Using the style – PB Docs 80
Using the style Once you complete a form style (or at least have a version that you want to test), you can put it to use. To make a style available to InfoMaker users: Make sure the window and menu that define the form style are in a library that is accessible to InfoMaker users…
Database connections – PB Docs 80
Database connections If you are deploying an executable or component that accesses a database, your users need access to the DBMS and to the database your application uses. Where to install database connectivity files You do not need to deploy database connectivity files with a client application that relies on a middle-tier component on another…
Identifying the dragged control – PB Docs 80
Identifying the dragged control To identify the type of control that was dropped, use the source argument of the DragDrop event. This script for the DragDrop event in a picture declares two variables, then determines the type of object that was dropped:
|
1 |
CommandButton lcb_button |
|
1 |
StaticText lst_info |
|
1 |
|
1 |
IF source.TypeOf() = CommandButton! THEN |
|
1 |
lcb_button = source |
|
1 |
lcb_button.Text = "You dropped a Button!" |
|
1 |
ELSEIF source.TypeOf() = StaticText! THEN |
|
1 |
lst_info = source |
|
1 |
lst_info.Text = "You dropped the text!" |
|
1 |
END IF<i></i> |
Using CHOOSE CASE If your window has a large number of controls…
About TreeView controls – PB Docs 80
About TreeView controls TreeView controls provide a way to represent hierarchical relationships within a list. The TreeView provides a standard interface for expanding and collapsing branches of a hierarchy: When to use a TreeView You use TreeViews in windows and custom visual user objects. Choose a TreeView instead of a ListBox or ListView when your…
Chapter 17 Using OLE in an Application – PB Docs 80
Chapter 17 Using OLE in an Application About this chapter This chapter describes several ways of implementing OLE in your PowerBuilder applications. Contents Topic OLE support in PowerBuilder OLE controls in a window OLE controls and insertable objects OLE custom controls Programmable OLE Objects OLE objects in scripts OLE information in the Browser Advanced ways…
Chapter 13 Manipulating Graphs – PB Docs 80
Chapter 13 Manipulating Graphs About this chapter This chapter describes how to write code that allows you to access and change a graph in your application at execution time. Contents Topic Using graphs Populating a graph with data Modifying graph properties Accessing data properties Using point and click Document get from Powerbuilder help Thank you…
Client- and component-demarcated transactions – PB Docs 80
Client- and component-demarcated transactions Client applications and EAServer components marked as OTS style can create, control, and obtain information about EAServer transactions using functions of the CORBACurrent context service object. The CORBACurrent object provides most of the methods defined for the CORBA Current interface. Two-phase commit Components in a client- or component-demarcated transaction must be…
Chapter 19 Building a Mail-Enabled Application – PB Docs 80
Chapter 19 Building a Mail-Enabled Application About this chapter This chapter describes how to use the messaging application program interface (MAPI) with PowerBuilder applications to send and receive electronic mail. Contents Topic About MAPI Using MAPI Document get from Powerbuilder help Thank you for watching.