int TouchSetVisible(int tc, int flag);


Set a touch area visible or invisible, by default it is visible.


Return Value


Return value is not used.





View handle returned from TouchAdd().



Visibility state of the Touch area. 0 = invisible; 1 = visible.




The TouchSetVisible() function changes the "visibility" of a touch area.  Visibility refers to whether the touch area will respond to events.




Available in DragonFireSDK 1.1 and later.




Description: This example will set up a touch area then turn its visibility off and then on.


#include "DragonFireSDK.h"


int OnTouch(int id, int event, int x, int y)


  // Respond to touch event.



void AppMain()


  int tc;


  tc = TouchAdd(0, 0, 320, 480, OnTouch);

  TouchSetVisible(tc, 0); // invisible

  TouchSetVisible(tc, 1); // visible



void AppExit()





void OnTimer()