
This method will return the height and width of the text passed in for calculation.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_PictureBox_GetTextExtent MyControlReference [as Reference] Text [as String]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_PictureBox_GetTextExtent ProjectFile [as String] DialogName [as String] ControlName [as String] Text [as String]) |
This function requires that the component is showing. Otherwise it has no effect.
Copy Code |
|---|
; Get the bounds of the text (Setq rValue (Odcl_PictureBox_GetTextExtent MyProject_MyForm_MyControl "Blue Balloon")) |