home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22151 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.5 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!ogicse!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!umn.edu!vx.cis.umn.edu!soc1070
  2. From: soc1070
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Modeless Dialogs - Newbie
  5. Message-ID: <25JAN199314121566@vx.cis.umn.edu>
  6. Date: 25 Jan 93 19:12:00 GMT
  7. Article-I.D.: vx.25JAN199314121566
  8. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  9. Organization: University of Minnesota CIS
  10. Lines: 21
  11. News-Software: VAX/VMS VNEWS 1.41
  12. Nntp-Posting-Host: vx.cis.umn.edu
  13.  
  14. I am trying to write a small app that uses a single modless dialog as
  15. an interface. According to IM 1, if you have a modeless dialog, regardless
  16. of what (Get)WaitNextEvent returns, you have to call IsDialogItem (and
  17. SelectDialogItem (?), I can't remember the third function and don't have
  18. the book in front of me) in order to get the caret to blink properly.
  19.  
  20. I can't seem to get my event loop to track properly, either I can't hit
  21. the menus & command keys, or my radios don't switch. I know the control
  22. code is good (things work ok if I use a modal dialog, but the menus are
  23. disabled).
  24.  
  25. "Mac C Primer" is no help, it just quickly describes the basic structure
  26. with no example code.
  27.  
  28. Sorry if this seems haphazard, I don't have my books here at work. Could
  29. someone please post, email me, or point me to some sample code that shows
  30. an event loop with a modeless dialog? 
  31. ------
  32. Tim Harincar                A skunk is better company than
  33. soc1070@vx.cis.umn.edu            someone who prides themselves on
  34.                      being frank. -Lazerus Long    
  35.