home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / LEnhancedCicnButton / LEnhancedCicnButton.h < prev   
Encoding:
Text File  |  1996-09-14  |  1.2 KB  |  37 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    File:                    LEnhancedCicnButton.cp
  3. //  Version:            1.0 - Feb 08,1996
  4. //    Author:                Mike Shields (mshields@inconnect.com)
  5. //
  6. //    Copyright ©1996 Mike Shields. All rights reserved.
  7. // ===========================================================================
  8. //    LEnhancedIconPane.cp            <- double-click + Command-D to see class definition
  9. //
  10. //
  11. // LEnhancedCicnButton is an enhancement to the PP supplied LCicnButton Class.
  12. // This subclass will cause the button to appear disabled when the button is 
  13. // actually disabled using Disable(). The normal LCicnButton does not take the 
  14. // Enabled status into account when it is drawing the graphic.
  15. //
  16. #pragma once
  17.  
  18. #include <LCicnButton.h>
  19.  
  20. class    LEnhancedCicnButton : public LCicnButton 
  21. {
  22. public:
  23.     enum { class_ID = 'Ecin' };
  24.     static LEnhancedCicnButton*    
  25.                 CreateFromStream(LStream *inStream);
  26.     
  27.                 LEnhancedCicnButton();
  28.                 LEnhancedCicnButton(const LEnhancedCicnButton &inOriginal);
  29.                 LEnhancedCicnButton(const SPaneInfo &inPaneInfo, MessageT inClickedMessage,
  30.                                             ResIDT inNormalID, ResIDT inPushedID);
  31.                 LEnhancedCicnButton(LStream *inStream);
  32.     virtual    ~LEnhancedCicnButton();
  33.     
  34. protected:
  35.     void        DrawSelf();    
  36. };
  37.