[Cuis-dev] adding functionality to morphs

Juan Vuletich juan at cuis.st
Sun Sep 1 08:26:56 PDT 2024


On 8/25/2024 8:30 PM, Mark Volkmann via Cuis-dev wrote:
> I need to learn how to create a change set for Cuis Smalltalk. Are the 
> steps documented somewhere?

Haven't you read all of 
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/blob/master/Documentation/ 
?????

Start with 
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev/blob/master/Documentation/CodeManagementInCuis.md

> 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 <mailto: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. Geo
>     http://gnu.org/s/dr-geo/
>     http://gnu-drgeo.blogspot.com/
>
>     -- 
>     Cuis-dev mailing list
>     Cuis-dev at lists.cuis.st <mailto:Cuis-dev at lists.cuis.st>
>     https://lists.cuis.st/mailman/listinfo/cuis-dev
>
>
>
> -- 
> R. Mark Volkmann
> Object Computing, Inc.


-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240901/b53e3234/attachment.htm>


More information about the Cuis-dev mailing list