Is Rubric editor using Text as model?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is Rubric editor using Text as model?

HilaireFernandes
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



Reply | Threaded
Open this post in threaded view
|

Re: Is Rubric editor using Text as model?

HilaireFernandes
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