int ViewSetVisible(int vw, int flag);

 

Set a view visible or invisible, by default it is visible.

 

Return Value

 

Return value is not used.

 

Parameters

 

vw

View handle returned from ViewAdd().

 

flag

Visibility state of the view. 0 = invisible; 1 = visible.

 

Remarks

 

The ViewSetVisible() function changes the visibility of a View.

 

Availability

 

Available in DragonFireSDK 1.0 and later.

 

Example

 

Description: This example will set up a view area and load an invisible Ball.png, then make the view visible.

 

#include "DragonFireSDK.h"

 

void AppMain()

{

  int vw;

 

  vw = ViewAdd("Ball.png", 0, 0);

  ViewSetVisible(vw, 0); // invisible

  ViewSetVisible(vw, 1); // visible

}

 

void AppExit()

{

 

}

 

void OnTimer()

{

 

}