home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / df3os2.zip / DIALOG.H < prev    next >
C/C++ Source or Header  |  1993-09-24  |  970b  |  40 lines

  1. // -------- dialog.h 
  2.  
  3. #ifndef DIALOG_H
  4. #define DIALOG_H
  5.  
  6. #include "dfwindow.h"
  7. #include "desktop.h"
  8. #include "control.h"
  9.  
  10. class Control;
  11.  
  12. class Dialog : public DFWindow    {
  13.     Bool isRunning;
  14.     Bool okexit;
  15.     void OpenWindow();
  16.     friend Control;
  17.     void TestShortcut(int key);
  18. protected:
  19.     Dialog(const char *ttl, int lf, int tp, int ht, int wd,
  20.             DFWindow *par = (DFWindow *)desktop.ApplWnd())
  21.                 : DFWindow(ttl, lf, tp, ht, wd, par)
  22.             { OpenWindow(); }
  23.     Dialog(const char *ttl, int ht, int wd,
  24.             DFWindow *par = (DFWindow *)desktop.ApplWnd())
  25.                 : DFWindow(ttl, ht, wd, par)
  26.             { OpenWindow(); }
  27.     virtual void CloseWindow();
  28.     virtual void Keyboard(int key);
  29.     virtual void OKFunction();
  30.     virtual void CancelFunction();
  31.     virtual void HelpFunction();
  32. public:
  33.     virtual void Execute();
  34.     Bool OKExit() { return okexit; }
  35. };
  36.  
  37. #endif
  38.  
  39.  
  40.