Hi grovesr.
send the controller
readOnly: true or
install a
ReadOnlyTextEditorController as new controller for the widget.
The Spec-installing procedure does this way.
Josef
grovesr wrote:
I am having trouble determining how to programmatically set a TextEditor
widget to be Read-Only. I want to do something like:
(self wrapperAt: #textEditor) makeReadOnly
I don't see a method that allows me to do that, but I see that I can create
the widget in the GUI Painter Read-Only, so I suspect that it can be done
later during program execution also.
Upon further search, I see that I can apply #isReadOnly: to the wrapper
spec:
(self wrapperAt: #textEditor) spec isReadOnly: true
But I'm not sure what I have to do to cause the #textEditor to pick up that
spec.
Any help would be greatly appreciated.