My first morph

Bob.Cowdery at CGI-Europe.com Bob.Cowdery at CGI-Europe.com
Sun Nov 6 19:12:19 UTC 2005


 

This was what I wanted to do:

 

It's basically a frequency display consisting of 9 digits in 3 sets of 3
digits separated by '_' like 999_999_999 except the font size and colour
will change for each group. The first basic requirement is that when I mouse
over this I want each digit to highlight in some way, perhaps a box around
it. When highlighted I want the mouse wheel to change that digit up or down
by one for each click. It's very important to me that there is no flicker on
this. I can't immediately see how to hook the mouse wheel events - is it
possible to do so.

 

Bert Freudenberg wrote:

>> You will get these as keyboard events - Ctrl-Up/Down or Cmd-Up/Down,  

>> depending on the VM. See, e.g., ScrollPane>>scrollByKeyboard:

 

Thanks Bert, got me past the first hurdle. This is basically working, very
well actually. I don't know if this was the correct way to do things but I
built a single digit morph and put them plus a few simple string morphs into
an alignment morph. Now I need to know how to do user defined events such
that when a digit overflows or underflows the next digit in line receives an
event and can increment or decrement itself. The event can go direct or
probably more sensible to send it to the parent which is my top level
display class not the alignment morph. Any hints appreciated.

 

Thanks

Bob


*** Confidentiality Notice *** Proprietary/Confidential
Information belonging to CGI Group Inc. and its affiliates
may be contained in this message. If you are not a recipient
indicated or intended in this message (or responsible for
delivery of this message to such person), or you think for
any reason that this message may have been addressed to you
in error, you may not use or copy or deliver this message
to anyone else.  In such case, you should destroy this
message and are asked to notify the sender by reply email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20051106/ae8eeeca/attachment.htm


More information about the Squeak-dev mailing list