Thank you both...I bet I can actually figure out the EventSensor way; doing it by using the approved method is a little beyond me at this time. I've never even used primitives yet--let alone written any in the VM!<div>
<br class="webkit-block-placeholder"></div><div>Thanks for your time,</div><div><br class="webkit-block-placeholder"></div><div>Rob<div><br><div><div><br><div class="gmail_quote">On Sat, Mar 1, 2008 at 9:31 PM, John M McIntosh <<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'll note this way is the approved method of doing it since it doesn't<br>
require changing EventSensor.<br>
Requires a bit more code and complexity<br>
<div class="Ih2E3d"><br>
On Mar 1, 2008, at 6:25 PM, Igor Stasenko wrote:<br>
<br>
> Well, you can do in similar way how VM does for transferring user<br>
> input to Smalltalk side.<br>
><br>
> In VM:<br>
> - add some variable(s) to hold your event parameters<br>
> - on some event, handled by windowProc(), set these parameters, and<br>
> signal semaphore.<br>
> - add primitive which when called, transforms event parameters to<br>
> objects.<br>
> - add primitive to register given semaphore , which will be signaled<br>
> when event occurs<br>
><br>
> In smalltalk:<br>
> - call primitive to register semaphore<br>
> - create process, waiting on given semapore, once it signaled, call<br>
> primitive to read event details.<br>
<br>
</div><div><div></div><div class="Wj3C7c">--<br>
=<br>
=<br>
=<br>
========================================================================<br>
John M. McIntosh <<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>><br>
Corporate Smalltalk Consulting Ltd. <a href="http://www.smalltalkconsulting.com" target="_blank">http://www.smalltalkconsulting.com</a><br>
=<br>
=<br>
=<br>
========================================================================<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>The foolish reject what they see, not what they think; the wise reject what they think, not what they see. -- Huang Po
</div></div></div></div>