문제

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?

도움이 되었습니까?

해결책

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)

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top