home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / mobjm260 / sbutton.h_ / sbutton.h
Encoding:
C/C++ Source or Header  |  1994-09-06  |  1.1 KB  |  47 lines

  1. //    Microworks ObjectMate  2.6
  2. //
  3. //  "SFX Class Library"
  4. //
  5. //    An ObjectWindows 2.0 extension for Borland C++ 4.0
  6. //
  7. //    Copyright 1992-94 Microworks Sydney, Australia.
  8. //
  9. //  SBUTTON.H 
  10.  
  11. #if !defined(__SFX_SBUTTON_H)
  12. #define __SFX_SBUTTON_H
  13.  
  14. #if !defined(__OWL_BUTTON_H)
  15.   #include <owl\button.h>
  16. #endif
  17.  
  18. //  class TSFXButton
  19.  
  20. class _OWLCLASS TSFXButton : public TButton
  21. {
  22.   public:
  23.     TSFXButton(TWindow*        parent,
  24.                int             id,
  25.                const char far* text,
  26.                int x, int y, int w = 0, int h = 0,
  27.                TModule*        module = 0);
  28.  
  29.     TSFXButton(TWindow* parent, int resourceId, TModule* module = 0);
  30.  
  31.     //    Changes a button's id and associated bitmaps, if any.
  32.     void       SetButton(int newId);
  33.  
  34.     //    Displays an icon on an icon button. You must load and delete the icon.
  35.     void       SetIcon(HICON newIcon);
  36.  
  37.     //    Sets the button text to str
  38.     void       SetText(const char far* str);
  39.  
  40.   protected:
  41.     char far*  GetClassName();
  42.  
  43.   DECLARE_STREAMABLE_FROM_BASE(_OWLCLASS, TSFXButton, TButton);
  44. };
  45.  
  46. #endif //    __SFX_SBUTTON_H
  47.