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 property |
Datatype |
Description |
|---|---|---|
|
Long |
Specifies the numeric value of the background |
|
|
Boolean |
Specifies whether the object has a border. Values TRUE — Object has a border. FALSE |
|
|
BorderStyle (enumerated) |
Specifies the style of the border of the object. StyleBox! StyleLowered! StyleRaised! StyleShadowBox! |
|
|
Boolean |
Specifies whether PowerBuilder moves the object to TRUE — Object moved to top. FALSE |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
ClassName |
String |
(External user objects only) Returns the name |
|
Integer |
Specifies the number of columns on a scroll page. PowerBuilder multiplies |
|
|
Control[ ] |
WindowObject |
Specifies the control’s objects. You cannot change |
|
Boolean |
Specifies whether PowerBuilder puts the object TRUE — FALSE — When the object is clicked, it is not |
|
|
String |
Specifies the name of the stock icon or the file When the user drags the object, the icon |
|
|
Boolean |
Specifies whether the object is enabled (can be TRUE — Object can be FALSE — Object cannot be |
|
|
Integer |
Specifies the height of the object, in PowerBuilder |
|
|
Boolean |
Specifies whether a horizontal scroll bar displays. TRUE — Horizontal scroll bar FALSE — Horizontal scroll bar does not |
|
|
LibraryName |
String |
(External user objects only) The name of the |
|
Integer |
Specifies the number of lines on a page. The PowerBuilder multiplies UnitsPerLine |
|
|
ObjectType |
UserObjects (enumerated) |
Specifies the type of user object. Valid values CustomVisual! ExternalVisual! |
|
Long |
Specifies the numeric value of the color in the This property applies only |
|
|
String |
Specifies a value of the Pointer enumerated This property applies only |
|
|
String |
Specifies the name of the stock pointer or the file |
|
|
String |
Specifies text to be displayed as a PowerTip for |
|
|
Style |
Long |
Specifies any additional style bits you want to use |
|
Long |
Specifies the numeric value of the tab background This property applies only |
|
|
Long |
Specifies the numeric value of the tab text color: This property applies only |
|
|
Integer |
Specifies tab value of the control within the user |
|
|
String |
Specifies the tag value assigned to the |
|
|
String |
Specifies the text that displays in the |
|
|
Integer |
Specifies the number of PowerBuilder units to be To make the end of the scroll bar match the PowerBuilder multiplies |
|
|
Integer |
Specifies the number of PowerBuilder units to be To make the end PowerBuilder multiplies UnitsPerLine |
|
|
Boolean |
Specifies whether the object is visible. Values TRUE — Object is visible. FALSE — |
|
|
Boolean |
Specifies whether a vertical scroll bar displays. TRUE — Vertical scroll bar FALSE — Vertical scroll bar does not |
|
|
Integer |
Specifies the width of the object, in PowerBuilder |
|
|
Integer |
Specifies the X position (distance from the left |
|
|
Integer |
Specifies the Y position (distance from the top of |
Events
|
UserObject event |
Occurs |
|---|---|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
|
|
When a dragged control is dropped on the |
|
|
When a dragged control enters the |
|
|
When a dragged control leaves the |
|
|
When a dragged control is within the |
|
|
When the user presses the F1 key or drags the |
|
|
When a Windows message occurs that is not a |
|
|
When the right mouse button is pressed on the |
Functions
|
UserObject function |
Datatype returned |
Description |
|---|---|---|
|
Integer |
Adds item to list. |
|
|
String |
Returns the name assigned to the |
|
|
Integer |
Removes the specified user object from view, closes |
|
|
Integer |
Creates a tab page if it has not already been |
|
|
Integer |
Deletes item from list. |
|
|
Integer |
Starts or ends the dragging of the |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Integer |
Makes the object invisible. |
|
|
Integer |
Inserts item in list. |
|
|
Integer |
Places the object in a new location specified by |
|
|
Integer |
Displays the specified user object, making its |
|
|
Integer |
Displays the specified user object, making its |
|
|
Boolean |
Reports whether a tab page has been |
|
|
Integer |
Returns the distance from the left edge of the |
|
|
Integer |
Returns the distance from the top of the screen to |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Integer |
Prints the object. |
|
|
Integer |
Changes the size of the object based on the width |
|
|
Integer |
Sets focus to the object. |
|
|
Integer |
Specifies the position of the object in the |
|
|
Integer |
Turns on or off automatic redrawing of the object |
|
|
Integer |
Makes the object visible. |
|
|
Integer |
Sends an event to the object and executes the |
|
|
Object |
Returns the type of the object. |