[Cuis-dev] adding functionality to morphs

Mark Volkmann r.mark.volkmann at gmail.com
Sun Aug 25 16:30:31 PDT 2024


I need to learn how to create a change set for Cuis Smalltalk. Are the
steps documented somewhere?
In the meantime, here's a fileOut for a new class that is a subclass of
TextEntryMorph and adds what I think is needed.
I think we just need to do three things to TextEntryMorph.

1)  Add the instance variable keystrokeAction.

2) Add this instance method:

keystrokeAction: aBlock
    keystrokeAction := aBlock

3) Add this line as the first line in the existing keyStroke: instance
method.

 keystrokeAction ifNotNil: [ keystrokeAction value: aKeyboardEvent ].


On Sun, Aug 25, 2024 at 9:48 AM Hilaire Fernandes via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> Indeed, I asked Mark if he can work on a change set to implement it
> identically in TextEntryMoprh.
> Le 25/08/2024 à 15:25, Juan Vuletich via Cuis-dev a écrit :
>
> Hilaire's code should also work on TextEntryMorph. I'd stick to
> TextEntryMorph if you want a single line.
>
> HTH,
>
> --
> GNU Dr. Geohttp://gnu.org/s/dr-geo/http://gnu-drgeo.blogspot.com/
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>


-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240825/c77e9135/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VTextEntryMorph.st
Type: application/octet-stream
Size: 843 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240825/c77e9135/attachment.obj>


More information about the Cuis-dev mailing list