Description
The PBX_DrawItemStruct structure contains the properties of an external visual control that you want to draw using the PBX_DrawVisualObject function.
Field |
Description |
---|---|
x |
X coordinate of the visual control relative to its parent control (for example, the window that contains it). |
y |
Y coordinate of the visual control relative to its parent control. |
width |
Width of the visual control. |
height |
Height of the visual control. |
objectName |
The name of the visual object, for example: uo_1. |
tag |
Field to be used to pass any value at the user's discretion. |
enabled |
Whether the visual control is enabled. Possible values are true and false. |
visible |
Whether the visual control is visible. Possible values are true and false. In the development environment, PowerBuilder does not call the PBX_DrawVisualObject function if this field is set to false and the Design>Show Invisibles menu item is not selected. |
borderstyle |
Border style of the visual control. A value of the pbborder_style enumerated variable. Possible values are:
|
backColor |
Background color of the visual control. You can obtain the RGB value of the background color using the Windows API functions GetRValue, GetGValue, and GetBValue. |
See also