int PushButtonSetxy(int bt, int x, int y);

 

Set a push button's position on the screen.

 

Return Value

 

Return value is not used.

 

Parameters

 

bt

Push button handle returned from PushButtonAdd().

 

x

x coordinate.

 

y

y coordinate.

 

Remarks

 

The PushButtonSetxy() function changes the position of a push button.

 

Availability

 

Available in DragonFireSDK 1.4 and later.

 

Example

 

This example will create a push button and set its position to 0, 0.  Pressing the push button will move the button a little each time it is pressed.

 

#include "DragonFireSDK.h"

 

int bt;

int bx=0;

int by=0;

 

int OnButton(int id)

{

   bx+=10;

   by+=10;

   PushButtonSetxy(bt,bx,by);

  return(id);

}

 

void AppMain()

{

   bt=PushButtonAdd("Images/Button",bx,by,OnButton,1);

}

 

void AppExit()

{

 

}

 

void OnTimer()

{

 

}