
This method will paint a picture anywhere on the control. The dialog box must be visible. If you intend to use this method to show a picture of pictures on the the PictureBox, make this call from the OnPaint event of the PictureBox so that the image is shown at the correct time.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_PictureBox_PaintPicture MyControlReference [as Reference] (list (list UpperLeftX [as Integer] UpperLeftY [as Integer] PictureID [as Picture] [Optional] Enabled [as Boolean] [Optional] UseMask [as Boolean]) (list UpperLeftX [as Integer] UpperLeftY [as Integer] PictureID [as Picture] [Optional] Enabled [as Boolean] [Optional] UseMask [as Boolean]) ... ) ) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_PictureBox_PaintPicture ProjectFile [as String] DialogName [as String] ControlName [as String] (list (list UpperLeftX [as Integer] UpperLeftY [as Integer] PictureID [as Picture] [Optional] Enabled [as Boolean] [Optional] UseMask [as Boolean]) (list UpperLeftX [as Integer] UpperLeftY [as Integer] PictureID [as Picture] [Optional] Enabled [as Boolean] [Optional] UseMask [as Boolean]) ... ) ) |
This function requires that the component is showing. Otherwise it has no effect.
Copy Code |
|---|
; Paint the picture (Odcl_PictureBox_PaintPicture MyProject_MyForm_MyControl (list 50 50 102 T Nil)) |