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

  1. Path: sparky!uunet!psinntp!newsserver.tasc.com!newsserver.tasc.com!news
  2. From: dstrout@sun.rest.tasc.com. (Dave Strout)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Newbie TCL question on mouse clicks
  5. Date: 11 Jan 1993 17:25:14 GMT
  6. Organization: TASC
  7. Lines: 23
  8. Distribution: usa
  9. Message-ID: <1isahqINN6ie@jumbo.read.tasc.com>
  10. Reply-To: dstrout@sun.rest.tasc.com
  11. NNTP-Posting-Host: pluto.aitc.rest.tasc.com
  12.  
  13.  
  14. Beginner question on mouse clicks.  I made a copy of the TCL starter app,  
  15. and put these lines in the Draw method in CStarterPane()
  16.  
  17. TextFont(1);
  18. MoveTo(50,50);
  19. DrawString("\pHello World");
  20.  
  21. That works fine.  Every new doc has "Hello world" in it.  But when I move  
  22. those same lines to the DoClick method, (Idea being draw it only after I  
  23. click in the window) nothing happens.  In fact, if I put SysBeep(1) in the  
  24. DoClick(), It doesn't beep.  What else do I need to do?
  25.  
  26. Thanks,
  27.  
  28. dave.
  29.  
  30. --
  31. Dave Strout    dstrout@sun.rest.tasc.com
  32. Thompson's Rule for First Time Telescope Makers:
  33. It's easier to make a 4 inch mirror then a 6 inch mirror
  34. than it is to make a 6 inch mirror.
  35. /* Opinions expressed are not the official position of TASC. */
  36.