int TextGety(int tx);

 

Gets the current text label's Y coordinate.

 

Return Value

 

Returns the Y coordinate of the text label referred to by the handle tx.

 

Parameters

 

tx

Text handle.

 

Remarks

 

TextGety() will return the text label's y coordinate.

 

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);

}