home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20971 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.4 KB

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