MoveFrame

<< Click to Display Table of Contents >>

 

MoveFrame

MoveFrame([PosX], [PosY], [SizeX], [SizeY], [InternalSize])

Moves and resizes a Frame to a specific coordinate and size. The PosX and PosY parameters inform a new position, in pixels, relative to the left and top, respectively. The SizeX and SizeY parameters inform a new size and height, respectively, in pixels or in Himetric units. The InternalSize parameter indicates that sizes passed on the SizeX and SizeY parameters are relative to the internal size of a window (True), deducting border and title bar, or they are relative to the full size of a window (False, default), considering border and title bar. All parameters are optional and, if omitted, do not move, in case of PosX and PosY parameters, nor resize, in case of SizeX and SizeY parameters, a Frame, according to the next example.

Sub Screen2_OnPreShow(vArg)
  'When Screen2 is opened on Test Frame, changes position
  'and size of that Frame using the full size of the window
  Application.GetFrame("Test").MoveFrame 100, 100, 200, 200
End Sub

 

NOTE

Size values for this method can be informed as numbers or as Strings. In case of numbers, they are considered as pixels. In case of Strings, if they are followed by an "hm" unit, they are interpreted as Himetric units. Any other case is considered as pixels.

Was this page useful?