Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can the main window title in Squeak and Pharo be set?

How can the main window title in Squeak and Pharo be set?

In Pharo I thought it could be set in the System -> Settings Menu but couldn't find anything there.

Can it be set only in code?

like image 532
vfclists Avatar asked Jan 10 '13 13:01

vfclists


2 Answers

Try this in Squeak:

HostWindowProxy basicNew primitiveWindowTitle: 1 string: 'My Title' squeakToUtf8

In Etoys we have a convenience method for this:

DisplayScreen hostWindowTitle: 'My Title'

(because Etoys shows the current project name as window title)

like image 135
Vanessa Freudenberg Avatar answered Sep 29 '22 07:09

Vanessa Freudenberg


This works in Pharo 3.0 (tested on Windows and Mac): DisplayScreen hostWindowTitle: 'My Title'

like image 35
Usman Bhatti Avatar answered Sep 29 '22 08:09

Usman Bhatti