AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkVirtualButton.SetPosition Method (Single, Single)

Sets the position of the virtual button in screen coordinates.

Syntax
Pascal
procedure SetPosition(const X: Single; const Y: Single); overload;
Parameters 
Description 
const X: Single 
The X coordinate of the new position. 
const Y: Single 
The Y coordinate of the new position. 

You can use TAgkApplication.VirtualWidth and TAgkApplication.VirtualHeight to find the current bounds of the screen. The button will be centered on the given X and Y position.

Copyright (c) 2012. All rights reserved.