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

  1. // -------- toolbar.h
  2.  
  3. #ifndef TOOLBAR_H
  4. #define TOOLBAR_H
  5.  
  6. #include "pbutton.h"
  7.  
  8. const COLORS ToolBarBG = BLUE;
  9.  
  10. // ------ Toolbar class
  11. class ToolBar : public DFWindow {
  12.     void ParentSized(int xdif, int ydif);
  13. public:
  14.     ToolBar(DFWindow *par);
  15. };
  16.  
  17. // ------- Toolbar button class
  18. class ToolButton : public PushButton    {
  19.     void SetColors();
  20.     void InitWindow(const char *lbl);
  21.     DFWindow *oldFocus;
  22.     virtual void ButtonCommand();
  23.     virtual Bool SetFocus();
  24. public:
  25.     ToolButton(const char *lbl, int lf, int tp, DFWindow *par=0);
  26.     ToolButton(const char *lbl, DFWindow *par=0);
  27.     virtual void Paint();
  28.     virtual void Border();
  29. };
  30.  
  31. #endif
  32.