home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / EVHANDLE.PAK / DIALOG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.5 KB  |  76 lines

  1. //----------------------------------------------------------------------------
  2. //  Project EVHANDLE
  3. //  
  4. //  Copyright ⌐ 1996. All Rights Reserved.
  5. //
  6. //  SUBSYSTEM:    EVHANDLE Application
  7. //  FILE:         DIALOG.H
  8. //  AUTHOR:       
  9. //
  10. //  OVERVIEW
  11. //  ~~~~~~~~
  12. //  Class definition for TDlgClient (TDialog).
  13. //
  14. //----------------------------------------------------------------------------
  15. #if !defined(dialog_h)              // Sentry, use file only if it's not already included.
  16. #define dialog_h
  17.  
  18. #include "evhandle.rh"                  // Definition of all resources.
  19. #include <vdbt\dbedit.h>
  20. #include <vdbt\dbnvgtr.h>
  21. #include <vdbt\dbradio.h>
  22. #include "textwnd.h"
  23.  
  24. //
  25. // derived class that contains all the VDBT controls
  26. // must also be derived from TVbxEventHandler
  27. //
  28. class TDlgClient : public TDialog, public TVbxEventHandler
  29. {
  30. public:
  31.     TDlgClient(TWindow* parent, TResId resId = IDD_CLIENT, TModule* module = 0);
  32.     virtual ~TDlgClient();
  33.     virtual void SetupWindow();
  34.  
  35. protected:
  36.     TextWindow *OutputWin;  // helper window for msg strings
  37.     TDBEdit *Edit1, *Edit2;
  38.    TDBNavigator *Nav;
  39.    TDBRadioGroup *RadioGroup;
  40.  
  41.    // event sinks for the TDBEdit class
  42.    TDBEditNotifySink    OnEditFocus, OnEditDataChange, OnEditLoseFocus;
  43.    // There are two OnKeyDown sinks, one for each TDBEdit control
  44.    // They can both go to the same method handler but must have two
  45.    // sinks.
  46.    TDBEditKeySink     OnEditKeyDownSink1, OnEditKeyDownSink2;
  47.  
  48.    // event sinks for the TDBNavigatorClass
  49.    TDBNavigatorClickSink    OnNavBtnClick;
  50.  
  51.    // event sinks for the TDBRadioGroup class
  52.    TDBRadioGroupNotifySink OnRadioChange,OnRadioGetFocus,
  53.        OnRadioLoseFocus;
  54.  
  55.    // event handler methods for the TDBEdit class
  56.    void EditGetFocus(TDBEditNotifySink&, TDBEdit&);
  57.    void EditLoseFocus(TDBEditNotifySink&, TDBEdit&);
  58.    void EditDataChange(TDBEditNotifySink&, TDBEdit&);
  59.    // one keydown handler for both TDBEdit controls
  60.    void EditKeyDown(TDBEditKeySink&, TDBEdit&, SHORT *,TShiftState);
  61.  
  62.    // event handler methods for the TDBNavigator class
  63.    void NavBtnClicked(TDBNavigatorClickSink&, TDBNavigator&,
  64.        TNavigateBtn);
  65.    
  66.    // event handler methods for the TDBRadioGroup class
  67.    void RadioGroupChange(TDBRadioGroupNotifySink&, TDBRadioGroup&);
  68.    void RadioGroupGetFocus(TDBRadioGroupNotifySink&, TDBRadioGroup&);
  69.    void RadioGroupLoseFocus(TDBRadioGroupNotifySink&, TDBRadioGroup&);
  70.  
  71.    DECLARE_RESPONSE_TABLE(TDlgClient);
  72.  
  73. };   
  74.  
  75. #endif  // dialog_h sentry.
  76.