Display script output in a TextMorph

Bug #1451201 reported by hilaire on 2015-05-03
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dr. Geo II

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

 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 :

For style editL


**BUT** better to make DrGScriptCostume a subclass of DrGTextCostume

hilaire (hilaire-fernandes) wrote :

But it is enough for (no need to change herarchy):

DrSCriptCostume>>backgroundColor: aColor
 morph backgroundColor: aColor

check for XML load, missing attribute will brake sketch load:

DrGTextCostumeStyle>>writeAttributesTo: aNode
 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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers