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