AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkVirtualButton.SetPosition Method (TAgkPoint)

Sets the position of the virtual button in screen coordinates.

Syntax
Pascal
procedure SetPosition(const P: TAgkPoint); overload;
Parameters 
Description 
const P: TAgkPoint 
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.