home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1999 Spring / macformat-077.iso / Shareware Plus / Development / SpriteWorld 2.2 / SpriteWorld files / Utils / SWDialogUtils.h < prev    next >
Encoding:
Text File  |  1998-03-17  |  2.0 KB  |  71 lines  |  [TEXT/CWIE]

  1. ///--------------------------------------------------------------------------------------
  2. //    SWDialogUtils.h
  3. //
  4. //    Created:    12/16/91 @ 11:37:55 PM
  5. //    By:        Tony Myles
  6. //
  7. //    Copyright © 1991-94, Tony Myles    All rights reserved worldwide.
  8. //
  9. //    Description: prototypes for dialog utility routines
  10. ///--------------------------------------------------------------------------------------
  11.  
  12.  
  13. #ifndef __DIALOGUTILS__
  14. #define __DIALOGUTILS__
  15.  
  16. #ifndef __TYPES__
  17. #include <Types.h>
  18. #endif
  19.  
  20. #ifndef __DIALOGS__
  21. #include <Dialogs.h>
  22. #endif
  23.  
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29.  
  30. Boolean GetDItemHilite(DialogPtr dlgP, short itemNum);
  31. void SetDItemHilite(DialogPtr dlgP, short itemNum, Boolean hilite);
  32.  
  33. void GetDItemText(DialogPtr dlgP, short itemNum, Str255 itemStr);
  34. void SetDItemText(DialogPtr dlgP, short itemNum, Str255 itemStr);
  35.  
  36. void GetDItemCtlTitle(DialogPtr dlgP, short itemNum, Str255 itemStr);
  37. void SetDItemCtlTitle(DialogPtr dlgP, short itemNum, Str255 itemStr);
  38.  
  39. void SetDItemCtlRefCon(DialogPtr dlgP, short itemNum, long refNum);
  40. long GetDItemCtlRefCon(DialogPtr dlgP, short itemNum);
  41.  
  42. void HideShowDItemControl(DialogPtr dlgP, short itemNum, Boolean show);
  43.  
  44. Handle GetDItemHandle(DialogPtr dlgP, short itemNum);
  45. void SetDItemHandle(DialogPtr dlgP, short itemNum, Handle newItemH);
  46.  
  47. void GetDItemRect(DialogPtr dlgP, short itemNum, Rect *itemRect);
  48. void SetDItemRect(DialogPtr dlgP, short itemNum, Rect *newItemRect);
  49.  
  50. void GetDItemType(DialogPtr dlgP, short itemNum, short *itemType);
  51. void SetDItemType(DialogPtr dlgP, short itemNum, short newItemType);
  52.  
  53. short GetDItemValue(DialogPtr dlgP, short itemNum);
  54. void SetDItemValue(DialogPtr dlgP, short itemNum, short value);
  55. void ToggleDItemValue(DialogPtr dlgP, short itemNum);
  56.  
  57. void SetDItemToUserItem(DialogPtr dlgP, short itemNum, Handle theUserItemUPP);
  58.  
  59. void SetDItemControlAction(DialogPtr dlgP, short itemNum, ControlActionUPP actionProcUPP);
  60.  
  61. void OutlineDefaultButton(DialogPtr dlgP, short itemNum);
  62. void ClickDialogButton(DialogPtr dlgP, short itemNum);
  63.  
  64.  
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68.  
  69.  
  70. #endif /* __DIALOGUTILS__ */
  71.