AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkText.Create Constructor

Creates a text object for displaying text on the screen.

Syntax
Pascal
constructor Create(const Owner: TAgkObject; const Text: String);
Parameters 
Description 
const Owner: TAgkObject 
the owner of the new text object (eg. a TAgkScene object). 
const Text: String 
the initial string to use in this text object. Can be an empty string. 

By default text is drawn at depth 9 above the default depth of sprites (10). Any sprites set to a depth of 8 or less will appear above the text. You can override this using Depth to set your own draw order. 

TAgkText

Copyright (c) 2012. All rights reserved.