Display script output in a TextMorph
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Dr. Geo II |
Wishlist
|
Unassigned |
Bug Description
Right now script output is in a StringMorph.
Do it in a text morph so it is possible to have script output spread in several lines of text.
Edit as
DrGScriptCostum
morph := DrGTextMorph new autoFit: true.
morph contents: '';
font: DrGDefault canvasFont;
backgroundColor: Color white.
mathItem value isText
ifTrue: [ morph contents: mathItem value]
ifFalse: [morph contents: self roundedValueString]
Style need to be extend as for TextCostume
hilaire (hilaire-fernandes) wrote : | #1 |
hilaire (hilaire-fernandes) wrote : | #2 |
But it is enough for (no need to change herarchy):
DrSCriptCostume
morph backgroundColor: aColor
check for XML load, missing attribute will brake sketch load:
DrGTextCostumeS
super writeAttributesTo: aNode.
aNode attributeAt: #background put: self baseBackgroundColor name asString capitalized.
Changed in drgeo: | |
status: | Confirmed → In Progress |
Changed in drgeo: | |
milestone: | wip → 15.07 |
Changed in drgeo: | |
status: | In Progress → Fix Committed |
Changed in drgeo: | |
status: | Fix Committed → Fix Released |
For style editL
DrGScriptCostum e>>styleClass eStyle
^DrGTextCostum
**BUT** better to make DrGScriptCostume a subclass of DrGTextCostume