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