int TextGetx(int tx);
Gets the current text label's X coordinate.
Return Value
Returns the X coordinate of the text label referred to by the handle tx.
Parameters
tx Text handle.
Remarks
TextGetx() will return the text label's x 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); }
|