PBX_DrawItemStruct structure

PowerBuilder Native Interface

PBX_DrawItemStruct structure

Description

The PBX_DrawItemStruct structure contains the properties of an external visual control that you want to draw using the PBX_DrawVisualObject function.

Table 7-11: PBX_DrawItemStruct members

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:

  • 0 – none

  • 1 – shadowbox

  • 2 – box

  • 5 – lowered

  • 6 – raised

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

PBX_DrawVisualObject