/*\
 * Extended entity data by Leon Kos, march 1993
 * AUTOCAD12, HyperWaft Project
 * Zagon programa (xload "eed") in EED s tem da Piknemo na entiteto
 * $Id: EED.CPP 1.1 1995/01/08 08:11:16 leon Exp $
\*/

#include  <afc/adsapp.hpp>


class ddemo: public Dialog {
  ListBox *lb; 
  EditBox *eb; 
  public:
   ddemo(const char *filename, const char *dialogKey, 
         const char *topic = NULL)  :  
         Dialog(filename, dialogKey, topic){
            insert(new Button("key1", 1));
            insert(new Button("key2", 2));
            insert(lb = new ListBox("key3", 3));
            insert(eb = new EditBox("key4", 4));
            lb->add("Ena");
            lb->add("Dve");
            eb->Set("Hellow");
         };

};

static void dd()
{
   ddemo d("ddemo.dcl", "ddemo");
   d.Run();
}

void main (int argc, char *argv[])
{
    ADSApplication eed;                                                       
    eed.Register(dd, "c:dd");
    eed.Run(argc, argv);
}





syntax highlighted by Code2HTML, v. 0.9.1