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.

 

Parameters

 

tc

View handle returned from TouchAdd().

 

flag

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

 

Remarks

 

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

 

Availability

 

Available in DragonFireSDK 1.1 and later.

 

Example

 

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

{

 

}