int DrawSetxy(int dr, int x, int y);

 

Sets the x and y coordinates for the specified Draw surface.

 

Return Value

 

Return value not used.

 

Parameters

 

dr

The handle to the Draw surface.

 

x

The new x coordinate of the Draw surface on the screen.

 

y

The new y coordinate of the Draw surface on the screen.

 

Remarks

 

DrawSetxy() sets the x and y coordinates for the Draw surface.

 

Availability

 

Available in DragonFireSDK 1.3 and later.

 

Example

 

#include "DragonFireSDK.h"

 

int MyDraw;

 

void AppMain()

{  

  MyDraw = DrawAdd(0, 0, 100, 100);

  // Set up my draw colors and pen width...

  DrawSetColor(MyDraw, 0xFF0000);

  DrawSetFillColor(MyDraw, 0x00FF00FF);

  DrawSetPenWidth(MyDraw, 2);

  // Set the Draw surface invisible...

  DrawSetVisible(MyDraw, 0);

  // Move the Draw surface..

  DrawSetxy(MyDraw, 50, 50);

 

  // Do some drawing...

  // Set the Draw surface visible again...

  DrawSetVisible(MyDraw, 1);

  // Clear the Draw surface...

  DrawClear(MyDraw);

}

 

void AppExit()

{

 

}

 

void OnTimer()

{

 

}