[Cuis-dev] My first question with ​LabeledInput morph

Maximiliano Joel Cabezon Alvarez maxi1985.798 at gmail.com
Mon Feb 19 20:07:14 PST 2024


Hi. My name is Maximiliano Cabezon Alvarez and i m working with Hernan in
these refactorings for my thesis:
https://github.com/maxi1985798/cuis-move-instance-variable-refactoring
https://github.com/maxi1985798/move-method-refactoring
https://github.com/maxi1985798/cuis-extract-class-refactoring

Pls install in that order

I have a problem with *LabeledInput *morph. When you delete the text with
*backspace*, the text format will be lost.
Here is the code to test in workspace:

| text model labeledInput |
text := Text fromString: 'hello people'.
text color: Color green.
model := TextModel withText: text.
labeledInput := LabeledInput withLabel: 'aaaaa' withWidth: 300 withModel:
model.
labeledInput openInHand.

If you delete 'hello people' with *backspace*, the format is lost. Should I
use a different morph for input?
Any help will be appreciated.

Thanks in advance.
Maxi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240220/af03469f/attachment.htm>


More information about the Cuis-dev mailing list