[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Useful RfCon
- To: blakem@world.std.com
- Subject: Useful RfCon
- From: Andrew L. M. Shalit <alms>
- Date: Wed, 15 Aug 90 14:46:51 -0400
- Cc: info-macl
- In-reply-to: Blake Meike's message of Wed, 15 Aug 90 10:46:25 -0400 <9008151446.AA29362@world.std.com>
From: blakem@world.std.com (Blake Meike)
(defobfun (do-scroll *scroll-bar*) ()
(....))
(defpascal scroll-proc ((my-control :ptr) (partCode :word))
(do-scroll))
Why does this work? Why doesn't scroll-proc have
to (ask <somebody> (do-scroll))?
The scroll-proc is only called after a DIALOG-ITEM-CLICK-EVENT-HANDLER
passes things to the ROM. The click-event-handler is a *scroll-bar*
obfun. So, at the time the call-back happens, the scroll-bar is
still the current object.
-andrew