home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / Appearance SDK 1.0.4 / Appearance Sample Code / Source / ClassicPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.2 KB  |  58 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        ClassicPane.h
  3.  
  4.     Contains:    Class to drive our classic pane, showing new versions of old favorites.
  5.  
  6.     Version:    Appearance 1.0 SDK
  7.  
  8.     Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Edward Voas
  13.  
  14.         Other Contact:        7 of 9, Borg Collective
  15.  
  16.         Technology:            OS Technologies Group
  17.  
  18.     Writers:
  19.  
  20.         (edv)    Ed Voas
  21.  
  22.     Change History (most recent first):
  23.  
  24.          <2>    10/28/97    edv        Use RadioGroup control!
  25.          <1>     9/11/97    edv        First checked in.
  26. */
  27.  
  28. #pragma once
  29.  
  30. #include "MegaPane.h"
  31. #include "Appearance.h"
  32.  
  33. class ClassicPane : public MegaPane
  34. {
  35.     public:
  36.             ClassicPane( DialogPtr dialog, SInt16 items );
  37.         virtual ~ClassicPane();
  38.         
  39.         virtual void        ItemHit( SInt16 item );
  40.     
  41.     private:
  42.         static pascal void    ScrollingFeedbackProc( ControlHandle control, SInt16 part );
  43.         static pascal void    DrawPictureProc( ControlHandle control, SInt16 part );
  44.  
  45.         static ControlActionUPP    fScrollBarProc;
  46.         static ControlUserPaneDrawUPP fDrawProc;
  47.  
  48.         ControlHandle        fVerticalScrollBar;
  49.         ControlHandle        fHorizontalScrollBar;
  50.         ControlHandle        fUserItem;
  51.         Point                fPictOffset;
  52.         SInt16                fPictWidth;
  53.         SInt16                fPictHeight;
  54.         PicHandle            fPicture;
  55.         SInt16                fUserItemHeight;
  56.         SInt16                fUserItemWidth;
  57. };
  58.