Pointer

Description

The image to be used for the mouse pointer when the pointer is over the specified control. If you specify a pointer for the whole DataWindow, PowerBuilder uses that pointer except when the pointer is over a control that also has a Pointer setting.

Applies to

DataWindow, Button, Column, Computed Field, Graph, GroupBox, Line, OLE, Oval, Picture, Rectangle, Report, RoundRectangle, TableBlob, and Text controls

Syntax

PowerBuilder dot notation:

dw_control.Object.controlname.Pointer

Describe and Modify argument:

"controlname.Pointer { = ' pointername ' }"

Parameter

Description

controlname

The name of the control in the DataWindow for which you want to get or set the pointer. Specify DataWindow to specify the pointer for the whole DataWindow.

pointername

(exp) A string specifying a value of the Pointer enumerated datatype or the name of a cursor file (.CUR) to be used for the pointer. (See the SetPointer method for a list of Pointer values.) Pointername can be a quoted DataWindow expression.

Usage


In the painter

Select the control and set the value in the Properties view, Pointer tab.

Examples

Example 1

setting = dw1.Object.graph_1.Pointer

Example 2

dw1.Object.graph_1.Pointer = 'Cross!'

Example 3

setting = dw1.Describe("graph_1.Pointer")

Example 4

dw1.Modify("graph_1.Pointer = 'Cross!'")

Example 5

dw1.Modify("graph_1.Pointer = 'c:\pb040\mycurs.cur'")