2016-09-02 15:56 GMT+02:00 Nicolai Hess :
>
>
> 2016-09-02 15:29 GMT+02:00 Sean P. DeNigris :
>
>> Peter Uhnak wrote
>> > LabelModel has #emphasis:
>>
>> Another apparent bug:
>> LabelModel new
>> emphasis: #(struck); <--- doesn't work. It accepts #struck as a
>> valid option, but does
Sean P. DeNigris wrote
> There must be some sort of guard inside TextModel that no-ops if the
> string is the same, so changing the text works:
This seems to be true of plain TextMorphs as well.
More disturbingly, it seems that LabelMorphs *silently throw away any
emphasis that isn't bold or ital
On Fri, Sep 02, 2016 at 06:40:01AM -0700, Sean P. DeNigris wrote:
>
>
>
> Peter Uhnak wrote
> > TextInputFieldModel will most likely require #whenBuiltDo: and Morphic
> > hacking.
>
> That is unfortunate. As a subclass, and conceptually in the model, it should
> do everything that TextModel doe
2016-09-02 15:29 GMT+02:00 Sean P. DeNigris :
> Peter Uhnak wrote
> > LabelModel has #emphasis:
>
> Another apparent bug:
> LabelModel new
> emphasis: #(struck); <--- doesn't work. It accepts #struck as a
> valid option, but does not strike the text
> label: 'struck';
>
Peter Uhnak wrote
> TextInputFieldModel will most likely require #whenBuiltDo: and Morphic
> hacking.
That is unfortunate. As a subclass, and conceptually in the model, it should
do everything that TextModel does - and more!
Since LabelModel and TextInputFieldModel have failed, it looks like t
Peter Uhnak wrote
> LabelModel has #emphasis:
Another apparent bug:
LabelModel new
emphasis: #(struck); <--- doesn't work. It accepts #struck as a
valid option, but does not strike the text
label: 'struck';
openWithSpec
-
Cheers,
Sean
--
View this message in con
Peter Uhnak wrote
> TextModel accepts Text:
Thanks for the sanity check. I realized where I was going wrong. There must
be some sort of guard inside TextModel that no-ops if the string is the
same, so changing the text works:
tm text: ((tm text allButLast) asText addAttribute: TextEmphasis
str
On Thu, Sep 01, 2016 at 09:18:47PM -0700, Sean P. DeNigris wrote:
> Is there a way to change the emphasis of Spec text (TextModel/TextInputModel,
> or even LabelModel - I would trade edit-ability for styling)?
LabelModel has #emphasis:
LabelModel new
emphasis: #(bold);
label: 'bol
Is there a way to change the emphasis of Spec text (TextModel/TextInputModel,
or even LabelModel - I would trade edit-ability for styling)?
The following successfully added the attribute to the text, but it didn't
display in Spec:
checkbox whenActivatedDo: [ self textModel text: (self textMode