AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkAdvert.SetPosition Method

Positions the advert created with Create somewhere on screen and attempts to scale it to a certain width.

Syntax
Pascal
class procedure SetPosition(const X: Single; const Y: Single; const Width: Single); static;
Parameters 
Description 
const X: Single 
The X position of the top left corner of the ad 
const Y: Single 
The Y position of the top left corner of the ad 
const Width: Single 
The desired width of the ad. It will be scaled to this width 

Since the advert will have its own aspect ratio the height will be calculated from the width. This is not guaranteed to work on all advert providers. Currently only Inneractive can scale and move ads.

Copyright (c) 2012. All rights reserved.