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. &nbsp;I&#39;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 &lt;<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;ll note this way is the approved method of doing it since it doesn&#39;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>
&gt; Well, you can do in similar way how VM does for transferring user<br>
&gt; input to Smalltalk side.<br>
&gt;<br>
&gt; In VM:<br>
&gt; - add some variable(s) to hold your event parameters<br>
&gt; - on some event, handled by windowProc(), set these parameters, and<br>
&gt; signal semaphore.<br>
&gt; - add primitive which when called, transforms event parameters to<br>
&gt; objects.<br>
&gt; - add primitive to register given semaphore , which will be signaled<br>
&gt; when event occurs<br>
&gt;<br>
&gt; In smalltalk:<br>
&gt; - call primitive to register semaphore<br>
&gt; - create process, waiting on given semapore, once it signaled, call<br>
&gt; primitive to read event details.<br>
<br>
</div><div><div></div><div class="Wj3C7c">--<br>
=<br>
=<br>
=<br>
========================================================================<br>
John M. McIntosh &lt;<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>&gt;<br>
Corporate Smalltalk Consulting Ltd. &nbsp;<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. &nbsp;-- Huang Po
</div></div></div></div>