int DrawSetVisible(int dr, int flag);
Sets the visibility of the specified Draw surface.
Return Value
Return value not used.
Parameters
dr The handle to the Draw surface.
flag Visibility state of the Draw surface. 0 = invisible; 1 = visible.
Remarks
DrawSetVisible() sets the visibility of on the Draw surface. A flag of 0 sets the surface invisible, and a flag of 1 sets the surface visible.
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() {
} |