home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13234 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cs.utexas.edu!usc!sdd.hp.com!ncr-sd!sagpd1!bberqu
  3. From: bberqu@sagpd1 ()
  4. Subject: Beginning Dialog Questions
  5. Message-ID: <1992Jul30.184047.21368@sagpd1>
  6. Keywords: dialog
  7. Date: Thu, 30 Jul 1992 18:40:47 GMT
  8. Lines: 22
  9.  
  10.  
  11. Hi,
  12.  
  13. I'm trying to learn how to use dialogs/controls and all I'm simply trying
  14. to do right now is display a dialog box along with the some static text
  15. from a resource file.  So I call GetNewDialog and the window pops up with
  16. no text (the text is not disabled), I was under the impression that the
  17. static text would be displayed after calling GetNewDialog (no luck).  
  18. So reading along in IM I found that maybe I need to call GetDItem with 
  19. the item number and SetIText (IM gives me the impression that it will 
  20. draw the text after this call, I also tried SetPort prior to calling these 
  21. two routines) to set the text, no luck!.  Can somebody explain what I need
  22. to do or why this isn't working.  By the way I can see, using the debugger,
  23. after making a call to GetIText that the text does get stored in the string
  24. I specified so I think I'm making all the calls OK.
  25.  
  26. Thanks in advance
  27.  
  28. Brian
  29.  
  30. P.S. Yes I'm new at this and have been RT#$/*M, just maybe not in the
  31. right places.
  32.