
This method will load a picture file of type .bmp, .ico, .jpg, and .wmf, into the PictureBox control.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_PictureBox_LoadPictureFile MyControlReference [as Reference] FileName [as String] [Optional] Stretch [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_LoadPictureFile ProjectFile [as String] DialogName [as String] ControlName [as String] FileName [as String] [Optional] Stretch [as Boolean]) |
This function requires that the component is showing. Otherwise it has no effect.
Copy Code |
|---|
; Load a picture (Odcl_PictureBox_LoadPictureFile MyProject_MyForm_MyControl "Balloon.bmp") |
PictureBox_PaintPicture, PictureBox_Refresh, PictureBox_StoreImage