home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21194 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.4 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: Re: Newbie TCL question on mouse clicks
  5. Date: 11 Jan 1993 18:20:34 GMT
  6. Organization: TASC
  7. Lines: 34
  8. Distribution: usa
  9. Message-ID: <1isdpiINN8sg@jumbo.read.tasc.com>
  10. References: <1isahqINN6ie@jumbo.read.tasc.com>
  11. Reply-To: dstrout@sun.rest.tasc.com
  12. NNTP-Posting-Host: uranus.aitc.rest.tasc.com
  13.  
  14. In article <1isahqINN6ie@jumbo.read.tasc.com> dstrout@sun.rest.tasc.com.  
  15. (Dave Strout) writes:
  16. > Beginner question on mouse clicks.  I made a copy of the TCL starter  
  17. app,  
  18. > and put these lines in the Draw method in CStarterPane()
  19. > TextFont(1);
  20. > MoveTo(50,50);
  21. > DrawString("\pHello World");
  22. > That works fine.  Every new doc has "Hello world" in it.  But when I  
  23. move  
  24. > those same lines to the DoClick method, (Idea being draw it only after I  
  25. > click in the window) nothing happens.  In fact, if I put SysBeep(1) in  
  26. the  
  27. > DoClick(), It doesn't beep.  What else do I need to do?
  28. > Thanks,
  29. > dave.
  30. > --
  31.  
  32. Heh Heh.  Sorry.  Should have read the docs SLOWLY.  Call  
  33. SetWantsClicks(true) in the init method.  <embarrassed grin>
  34.  
  35. dave.
  36. --
  37. Dave Strout    dstrout@sun.rest.tasc.com
  38. Thompson's Rule for First Time Telescope Makers:
  39. It's easier to make a 4 inch mirror then a 6 inch mirror
  40. than it is to make a 6 inch mirror.
  41. /* Opinions expressed are not the official position of TASC. */
  42.