>You have an ApplicationModel subclass with a text widget in it. If you
>look at your class, you will notice an instance variable of the same
>name as the one you assigned on the property sheet. If you don't have
>one, then re-edit the canvas, give it an aspect and an id, and then
>re-install it. Then hit the 'define' button on the canvas tool.
>Now, suppose you called the aspect 'myText'. The following method would
>load the text from a file and dump it into the widget at startup:
>initialize
> | file |
> super initialize.
> file :=3D 'myTextFile.txt' asFilename.
> self myText value: file contentsOfEntireFile.
>> =
>> I'm using VisualWorks 5i.2 non-Commercial.
>> N.S.
>> =
>> >Which smalltalk are you using?
>> >> How can I print a string on a Text Editor widget?
>> >> Could someone help me, with a simple example, to understand how to a=
>ccess
>> and refresh Text Editor Widget?
>> >> N.S.
>> >> --
>> >> Sent by philcore from tiscalinet within field it
>> >> This is a spam protected message. Please answer with reference heade=
>r.
>> >> Posted via http://www.usenet-replayer.com/cgi/content/new
>> >--
>> >----------------------------------------------------------------------=
>> >H=E4slenweg 28 http://www.objektfabrik.de
>> >D-71642 Ludwigsburg
>> >Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1
>> =
>> ----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the We=
>b -----
>> http://newsone.net/ -- Free reading and anonymous posting to 60,000+ =
>groups
>> NewsOne.Net prohibits users from posting spam. If this or other pos=
>ts
>e.net
>-- =
>James A. Robertson
>Product Manager (Smalltalk), Cincom
><Talk Small and Carry a Big Class Library>
----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web -----