
This method will return the size of a picture, indicated by its Id.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_PictureBox_GetPictureSize MyControlReference [as Reference] PictureID [as Integer]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_PictureBox_GetPictureSize ProjectFile [as String] DialogName [as String] ControlName [as String] PictureID [as Integer]) |
This function requires that the component is showing. Otherwise it has no effect.
Copy Code |
|---|
; Get the size of the picture (Setq rValue (Odcl_PictureBox_GetPictureSize MyProject_MyForm_MyControl 108)) |