On 6/5/06, <b class="gmail_sendername">radouane el marjani</b> &lt;<a href="mailto:estel1212@yahoo.fr">estel1212@yahoo.fr</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I have a little problem, I want to change the time by a &quot;ClockMorph&quot;<br>Instance, I have searched a Methode in Squeak Categorie<br>ClockMorph, which makes that, but I didn't find. for exemple of this<br>way:&quot; I get the contents of my clockMoprh, then I set these contents
<br>with the time that I want&quot;, is there a methode that make that, or I must<br>writte it self.</blockquote><div><br>You can see how ClockMorph gets its content from the ClockMorph&gt;&gt;step method. Right now, it's hard-coded to use 'Time now'. 
<br><br>You could get the functionality you want by adding a new instance variable, 'time', and a new method 'time:' that'll set the variable.<br><br>Remember to set it to Time now in ClockMorph&gt;&gt;initialize too.<br>
<br>Duncan.</div></div>