Picture control
Picture controls can contain images in the following
formats:
-
Bitmaps, with .BMP or
.RLE extensions -
Windows metafiles, with the .WMF extension
-
GIF or animated GIF files, with the .GIF extension
-
JPEG files, with .JPEG or .JPG extensions
-
Portable Networks Graphics, with .PNG extension
You can create the image in another application or use a
scanner to create it.
Properties
Picture property |
Datatype |
Description |
---|---|---|
String |
A description of the control and/or |
|
String |
A label that briefly describes the control, |
|
AccessibleRole (enumerated) |
Describes what kind of user interface |
|
Boolean |
Specifies whether the control 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 |
Boolean |
Specifies whether PowerBuilder puts the
|
|
String |
Specifies the name of the stock icon When the user drags the control, the icon displays when the control |
|
Boolean |
Specifies whether the control is enabled
|
|
Boolean |
Specifies whether a dotted rectangle
|
|
Integer |
Specifies the height of the control, |
|
Boolean |
Specifies whether the control displays
|
|
Boolean |
Specifies whether the system 3D colors
|
|
Boolean |
Specifies whether the width and height
In the Window painter, setting OriginalSize to true overrides |
|
String |
Specifies the name of the file that contains |
|
String |
Specifies the name of the stock pointer |
|
Long |
Specifies a PowerTip for the control. |
|
Integer |
Specifies the tab value of the picture |
|
String |
Specifies the tag value assigned to the |
|
Boolean |
Specifies whether the control is visible.
|
|
Integer |
Specifies the width of the control, in |
|
Integer |
Specifies the X position (distance from |
|
Integer |
Specifies the Y position (distance from |
Events
Picture event |
Occurs |
---|---|
When the control is clicked (selected) |
|
Immediately before the Open event occurs |
|
Immediately after the Close event occurs |
|
When the control is double-clicked (selected |
|
When a dragged control is dropped on |
|
When a dragged control enters the control |
|
When a dragged control leaves the control |
|
When a dragged control is within the |
|
Just before the control receives focus |
|
When the user presses the F1 key or drags |
|
When the control loses focus (becomes |
|
When a Windows message occurs that is |
|
When the right mouse button is pressed |
Functions
Picture function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the control. |
|
Integer |
Starts or ends the dragging of the control. |
|
Integer |
Draws a picture in the parent window |
|
Integer |
Creates a reference to a context-specific |
|
PowerObject |
Returns a reference to the name of the |
|
Integer |
Makes the control invisible. |
|
Integer |
Moves the control to a specified location. |
|
Integer |
Returns the distance of the pointer from |
|
Integer |
Returns the distance of the pointer from |
|
Boolean |
Adds an event to the end of the message |
|
Integer |
Prints the control. |
|
Integer |
Changes the size of the control. |
|
Integer |
Sets focus to the control. |
|
Integer |
Constructs a new bitmap for the control. |
|
Integer |
Specifies the position of the control |
|
Integer |
Controls automatic redrawing of the control |
|
Integer |
Makes the control visible. |
|
Integer |
Triggers a specified event in the control |
|
Object |
Returns the type of the control. |