int EditSetVisible(int ed, int flag);

 

Sets the visibility of the specified edit box.

 

Return Value

 

Return value not used.

 

Parameters

 

ed

Edit box handle.

 

flag

Specifies whether the edit box should be visible or invisible.  0=invisible; 1=visible.

 

Remarks

 

EditSetVisible() will set the visibility of the specified edit box.

 

Availability

 

Available in DragonFireSDK 1.2 and later.

 

Example

 

#include "DragonFireSDK.h"

#include <string.h>

 

int edit;

 

int OnEditDone()

{

  char EditText[100];

 

   EditGetText(edit, EditText);

 

  if (strcmp(EditText, "foo") == 0)

   {

       EditSetText(edit, "bar");

   }

 

  if (strcmp(EditText, "bye") == 0)

   {

       EditSetVisible(edit, 0);

   }

 

  return(0);

}

 

void AppMain()

{

   ViewAdd("MyForm.png",0,0); // display a form background with white edit boxes

   edit = EditAdd(10, 80, 50);

   EditSetLabel(edit, "Email");

   EditSetOnDone(OnEditDone);

}

 

void AppExit()

{

 

}

 

void OnTimer()

{

 

}