UserObject object
UserObjects are custom visual objects that you can
build to supplement the standard PowerBuilder objects. UserObjects
can display information, request information from a user, and respond
to mouse or keyboard actions. You can also create a TabPage UserObject.
Use the User Object painter to build UserObjects.
When you place a visible UserObject in a window, you are actually
placing a UserObject control in the window.
The control holds an instance of the UserObject you select for the
window.
Properties
UserObject |
Datatype |
Description |
---|---|---|
Long |
Specifies the numeric value of the background |
|
Boolean |
Specifies whether the object has a border.
|
|
BorderStyle (enumerated) |
Specifies the style of the border of
|
|
Boolean |
Specifies whether PowerBuilder moves
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
ClassName |
String |
(External user objects only) Returns |
Integer |
Specifies the number of columns on a PowerBuilder multiplies UnitsPerColumn by ColumnsPerPage to |
|
Control[ ] |
WindowObject |
Specifies the control’s objects. |
Boolean |
Specifies whether PowerBuilder puts the
|
|
String |
Specifies the name of the stock icon When the user drags the object, the icon displays when the |
|
Boolean |
Specifies whether the object is enabled
|
|
Integer |
Specifies the height of the object, in |
|
Boolean |
Specifies whether a horizontal scroll
|
|
LibraryName |
String |
(External user objects only) The name |
Integer |
Specifies the number of lines on a page. PowerBuilder multiplies UnitsPerLine by LinesPerPage to determine |
|
ObjectType |
UserObjects (enumerated) |
Specifies the type of user object. Valid
|
Long |
Specifies the numeric value of the color This property applies only when PictureName is a bitmap and only |
|
String |
Specifies a value of the Pointer enumerated This property applies only when the UserObject is a tab page. |
|
String |
Specifies the name of the stock pointer |
|
String |
Specifies text to be displayed as a PowerTip |
|
Style |
Long |
Specifies any additional style bits you |
Long |
Specifies the numeric value of the tab This property applies only when the UserObject is a tab page. |
|
Long |
Specifies the numeric value of the tab This property applies only when the UserObject is a tab page. |
|
Integer |
Specifies tab value of the control within |
|
String |
Specifies the tag value assigned to the |
|
String |
Specifies the text that displays in the |
|
Integer |
Specifies the number of PowerBuilder To make the end of the scroll bar match the content, UnitsPerLine PowerBuilder multiplies UnitsPerColumn by ColumnsPerPage to |
|
Integer |
Specifies the number of PowerBuilder To make the end of the scroll bar match the content, UnitsPerLine PowerBuilder multiplies UnitsPerLine by LinesPerPage to determine |
|
Boolean |
Specifies whether the object is visible.
|
|
Boolean |
Specifies whether a vertical scroll bar
|
|
Integer |
Specifies the width of the object, in |
|
Integer |
Specifies the X position (distance from |
|
Integer |
Specifies the Y position (distance from |
Events
UserObject event |
Occurs |
---|---|
Immediately before the Open event occurs |
|
Immediately after the Close event occurs |
|
When a dragged control is dropped on |
|
When a dragged control enters the object |
|
When a dragged control leaves the object |
|
When a dragged control is within the |
|
When the user presses the F1 key or drags |
|
When a Windows message occurs that is |
|
When the right mouse button is pressed |
Functions
UserObject function |
Datatype returned |
Description |
---|---|---|
Integer |
Adds item to list. |
|
String |
Returns the name assigned to the object. |
|
Integer |
Removes the specified user object from |
|
Integer |
Creates a tab page if it has not already |
|
Integer |
Deletes item from list. |
|
Integer |
Starts or ends the dragging of the object. |
|
Integer |
Creates a reference to a context-specific |
|
PowerObject |
Returns a reference to the name of the |
|
Integer |
Makes the object invisible. |
|
Integer |
Inserts item in list. |
|
Integer |
Places the object in a new location specified |
|
Integer |
Displays the specified user object, making |
|
Integer |
Displays the specified user object, making |
|
Boolean |
Reports whether a tab page has been created. |
|
Integer |
Returns the distance from the left edge |
|
Integer |
Returns the distance from the top of |
|
Boolean |
Adds an event to the end of the message |
|
Integer |
Prints the object. |
|
Integer |
Changes the size of the object based |
|
Integer |
Sets focus to the object. |
|
Integer |
Specifies the position of the object |
|
Integer |
Turns on or off automatic redrawing of |
|
Integer |
Makes the object visible. |
|
Integer |
Sends an event to the object and executes |
|
Object |
Returns the type of the object. |