[Cuis-dev] Creating/extracting morph components

ken.dickey at whidbey.com ken.dickey at whidbey.com
Tue Jan 26 08:11:11 PST 2021


On 2021-01-25 20:07, Nicolás Papagna Maldonado via Cuis-dev wrote:

...
> I have implemented an "auto complete text morph" (that is basically a 
> text morph + supporting morphs + behavior) that lives embedded in a 
> system widow at the moment, and I'd like to extract that to a component 
> to reuse it in other projects.
> 
> How one would go about that?

I suggest looking at #Panel and its subclasses in Morphic-Misc1, which 
is also probably a good home package for this when you get it as you 
like it.

E.g. LayoutEditPanel is a couple of subclasses down and uses custom 
components and layout.

There is a tutorial on Package Creation in the Learning_Cuis repository:
   
https://github.com/Cuis-Smalltalk/Learning-Cuis/blob/master/SamplePackage1.md

HTH,
-KenD


More information about the Cuis-dev mailing list