Is Rubric editor using Text as model?
Hi, Because this code does not work with rubric: | text editor |text := ['Figure DrGeo ' asText, TextConstants CR, DrGeoCanvas viewLess axesOn gridOn view asText, TextConstants CR, 'Ici...' asText].editor := RubPluggableTextMorph on: text text: #value accept: nil readSelection: nil menu: nil. Although this one is ok: [..] editor := Smalltalk ui theme builder newTextEditorFor: text getText: #value setText: nil. Thanks Hilaire -- Dr. Geo http://drgeo.eu
I got more chance with code bellow. But Morph anchored in the text does not show up (only an empty frame), is it the expected behavior? text := 'Figure DrGeo ' asText, TextConstants CR, DrGeoCanvas viewLess axesOn view asText, TextConstants CR, 'Ici...' asText. editor := RubEditingArea new    updateTextWith: text;    width: 400;    openInWindow -- Dr. Geo http://drgeo.eu
participants (1)
-
Hilaire