home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / TransSkel / Convenience / Dialog Item Stuff / SkelSetDlogStr.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-20  |  305 b   |  19 lines  |  [TEXT/KAHL]

  1. /*
  2.  * Set text of a dialog item.  The value is passed or returned
  3.  * as a string, not a buffer/length combination.
  4.  */
  5.  
  6. # include    "TransSkel.h"
  7.  
  8.  
  9. pascal void
  10. SkelSetDlogStr (DialogPtr d, short item, StringPtr str)
  11. {
  12. short    type;
  13. Handle    h;
  14. Rect    r;
  15.  
  16.     GetDItem (d, item, &type, &h, &r);
  17.     SetIText (h, str);
  18. }
  19.