int TextSetxy(int tx, int x, int y);

 

Sets the x and y coordinates of the text label referred to by the handle tx.

 

Return Value

 

Returns zero if successful.

 

Parameters

 

tx

Text label handle.

 

x

X coordinate.

 

y

Y coordinate.

 

Remarks

 

TextSetxy() will move the text label to the specified coordinates.

 

Availability

 

Available in DragonFireSDK 1.0 and later.

 

Example

 

The example below will query the current location of a text label and increment its X and Y coordinates in the OnTimer() event.

 

#include "DragonFireSDK.h"

 

int TextHandle;

 

void AppMain()

{

  FontMedium = FontAdd("FontMedium");

  TextHandle = TextAdd(0, 0, "Hello, World!", FontMedium);

}

 

void AppExit()

{

 

}

 

void OnTimer()

{

  TextSetxy(TextHandle, TextGetx(TextHandle) + 1, TextGety(TextHandle) + 1);

}