home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!emory!wupost!uwm.edu!zaphod.mps.ohio-state.edu!malgudi.oar.net!hyperion!desire.wright.edu!jmatthews
- From: jmatthews@desire.wright.edu
- Newsgroups: comp.sys.mac.programmer
- Subject: Edit text in modeless dialog?
- Message-ID: <1993Jan8.000518.6470@desire.wright.edu>
- Date: 8 Jan 93 00:05:18 EST
- Organization: Wright State University
- Lines: 19
-
- I've got a simple utility application featuring a single modeless
- dialog containg a pair of edit text items and some buttons. I bring up
- the dialog with GetNewDialog, SetPort and ShowWindow; I handle events
- with IsDialogEvent and DialogSelect; I can pre-select the contents of
- the first edit text item at startup with TESetSelect. Oh joy.
-
- The problem occurs when the edit text item is empty: the blinking
- caret marking the insertion point doesn't appear until I hit tab or
- click in the _second_ edit text item; clicking in the first edit text
- item does nothing. Is there a way to make the caret appear in that
- first, empty field?
-
- I've seen this problem addressed here before, and I _thought_ I knew
- how to do this:-) Any suggestions appreciated.
-
- o----------------------------------------------------------------------------o
- | John B. Matthews, jmatthews@desire.wright.edu, disclaimer:= myViews <> WSU |
- | "Whom the gods would destroy, they first invite to program in C" |
- o----------------------------------------------------------------------------o
-