home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!psinntp!newsserver.tasc.com!newsserver.tasc.com!news
- From: dstrout@sun.rest.tasc.com. (Dave Strout)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Newbie TCL question on mouse clicks
- Date: 11 Jan 1993 18:20:34 GMT
- Organization: TASC
- Lines: 34
- Distribution: usa
- Message-ID: <1isdpiINN8sg@jumbo.read.tasc.com>
- References: <1isahqINN6ie@jumbo.read.tasc.com>
- Reply-To: dstrout@sun.rest.tasc.com
- NNTP-Posting-Host: uranus.aitc.rest.tasc.com
-
- In article <1isahqINN6ie@jumbo.read.tasc.com> dstrout@sun.rest.tasc.com.
- (Dave Strout) writes:
- >
- > Beginner question on mouse clicks. I made a copy of the TCL starter
- app,
- > and put these lines in the Draw method in CStarterPane()
- >
- > TextFont(1);
- > MoveTo(50,50);
- > DrawString("\pHello World");
- >
- > That works fine. Every new doc has "Hello world" in it. But when I
- move
- > those same lines to the DoClick method, (Idea being draw it only after I
- > click in the window) nothing happens. In fact, if I put SysBeep(1) in
- the
- > DoClick(), It doesn't beep. What else do I need to do?
- >
- > Thanks,
- >
- > dave.
- >
- > --
-
- Heh Heh. Sorry. Should have read the docs SLOWLY. Call
- SetWantsClicks(true) in the init method. <embarrassed grin>
-
- dave.
- --
- Dave Strout dstrout@sun.rest.tasc.com
- Thompson's Rule for First Time Telescope Makers:
- It's easier to make a 4 inch mirror then a 6 inch mirror
- than it is to make a 6 inch mirror.
- /* Opinions expressed are not the official position of TASC. */
-