home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / Sample Code / AppsToGo / DTS.Lib / DTS.Lib.headers / PICTControl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-24  |  1.7 KB  |  43 lines  |  [TEXT/MPS ]

  1. #ifndef __PICTCONTROL__
  2. #define __PICTCONTROL__
  3.  
  4. #ifndef __TYPES__
  5. #include <Types.h>
  6. #endif
  7.  
  8. #ifndef __CONTROLS__
  9. #include <Controls.h>
  10. #endif
  11.  
  12. #ifndef __WINDOWS__
  13. #include <Windows.h>
  14. #endif
  15.  
  16. ControlHandle    CPICTNew(WindowPtr window, Rect *r, StringPtr title, Boolean vis, short val,
  17.                          short min, short max, short viewID, short refcon);
  18.     /* Create a new PICT control.  All the parameters are what you would expect for creating
  19.     ** a new control. */
  20.  
  21. ControlHandle    CPICTNext(WindowPtr window, ControlHandle ctl, short dir, Boolean justActive);
  22.     /* Return the next PICT control from a window's control list. 
  23.     **
  24.     ** window:        The window whose control list is to be searched.
  25.     ** ctl:            The control to start the search with (nil to start at the beginning).
  26.     ** dir:            1 (forward through the control list) or -1 (backward through the control list)
  27.     ** justActive:    only return active, visible PICT controls.
  28.     **
  29.     ** To get the first control in the window's control list, pass in a nil for ctl.
  30.     ** Pass in either 1 or -1 for the direction of the search.  Passing in a 1 means to
  31.     ** return the control just after the one passed in (or the first one if nil is passed in).
  32.     ** Passing in a -1 means to return the control just prior to the one passed in (or the
  33.     ** last control if nil is passed in).  If there are no more controls, then nil is returned.
  34.     ** The justActive field indicates if you want to return only visible, active controls.
  35.     ** If false is passed in, then the next control is returned, independent of state.
  36.     ** If true is passed in, then the next visible, active control is returned. */
  37.  
  38. Boolean            IsPICTCtl(ControlHandle ctl);
  39.     /* Check to see if the control is a PICT control. */
  40.  
  41. #endif
  42.  
  43.