How do I display a text in a text window?
Hello I want to display a string (no code) in a text window. What is the equivalent of the Squeak expression StringHolder new textContents: (MyTextCollection at: 101); openLabel: 'theText 101' in Pharo 5.0? Regards Hannes
Answer: To open a text window with text I do Workspace openContents: (MyTextCollection at: 101). Display as text only: At the bottom I can switch between - plain text - smalltalk scripting But the text remains red in both cases. What am I missing? --Hannes On 9/1/16, H. Hirzel <hannes.hirzel@gmail.com> wrote:
Hello
I want to display a string (no code) in a text window.
What is the equivalent of the Squeak expression
StringHolder new textContents: (MyTextCollection at: 101); openLabel: 'theText 101'
in Pharo 5.0?
Regards
Hannes
Look into UIManager helpers. I have to run now. Le 1/9/16 à 21:47, H. Hirzel a écrit :
Hello
I want to display a string (no code) in a text window.
What is the equivalent of the Squeak expression
StringHolder new textContents: (MyTextCollection at: 101); openLabel: 'theText 101'
in Pharo 5.0?
Regards
Hannes
Thank you Stephane for the hint. Through reading UIManager createPageTestWorkspace I found UIManager default edit: (MyTextCollection at: 101) label: 'Text 101'. It works fine for my purpose. --Hannes On 9/2/16, stepharo <stepharo@free.fr> wrote:
Look into UIManager helpers.
I have to run now.
Le 1/9/16 à 21:47, H. Hirzel a écrit :
Hello
I want to display a string (no code) in a text window.
What is the equivalent of the Squeak expression
StringHolder new textContents: (MyTextCollection at: 101); openLabel: 'theText 101'
in Pharo 5.0?
Regards
Hannes
participants (2)
-
H. Hirzel -
stepharo