Description: | Moves the control to the specified position. The units are those defined in the ScaleMode property of the control being moved. | ||||
Toolbar | It is effective when the Align property is "0 - None". | ||||
Used in controls: | Animation CheckBox ComboBox CommandButton Custom DriveList Edit | FileList FolderList Frame Graph GroupBox Image Label | ListBox ListView MCI OptionButton ProgressIndicator ScrollBar Shape | Slider StaticText Tab Table TextBox Toolbar TreeView | |
Used in objects: | None. | ||||
Parameters: | VT_I4 - LeftS9(9) COMP-5 VT_I4 - TopS9(9) COMP-5 [VT_I4 - WidthS9(9) COMP-5] [VT_I4 - Height S9(9) COMP-5] | ||||
Description of Parameters: | Left: The new horizontal position for the top left corner of the control. Top: The new vertical position for the top left corner of the control. Width: The new width for the control. Height: The new height for the control. If Width and Height parameters are omitted, the size of the control is not changed. | ||||
Return value: | None. | ||||
Example: | WORKING-STORAGE SECTION. 01 ScreenLeft PIC S9(9) COMP-5. 01 ScreenTop PIC S9(9) COMP-5. 01 ScreenWidth PIC S9(9) COMP-5. 01 ScreenHeight PIC S9(9) COMP-5. PROCEDURE DIVISION. * Remember that values must be expressed in the current Scale * Mode. Here we set the scale mode to pixels first. MOVE 0 TO "ScaleMode" OF CmText1 * Use the optional ScreenWidth and ScreenHeight Parms to resize * the control as well. MOVE 10 TO ScreenLeft MOVE 20 TO ScreenTop MOVE 50 TO ScreenWidth MOVE 20 TO ScreenHeight INVOKE CmText1 "Move" USING ScreenLeft ScreenTop ScreenWidth ScreenHeight | ||||
Backward compatibility | Corresponds to setting a value to POW-POSITION. |