I am trying to make "Turn fill screen off" and a "Turn fill screen on" blocks
So, here's my codes, and they won't work.
(fill screen off)
('turn fillscreen off' #- #fillScreenOff)fillScreenOff
Smalltalk fullScreenMode: false.
World restoreDisplay.
fillScreenFlag _ false.
self isSticky: false.
self extent: Display extent - 50.
UseErrorCatcher _ false.
Preferences disable: #noviceMode.
Preferences enable: #warnIfNoSourcesFile.
Preferences enable: #warnIfNoChangesFile.
Preferences insertionPointColor: (Color
r: 0.4
g: 1.0
b: 0.0).
Preferences textHighlightColor: (Color
r: 0.4
g: 1.0
b: 0.0)(fill screen on)
('turn fillscreen on' #- #fillScreenOn)fillScreenOn
TakeOverScreen
ifTrue:
[Smalltalk fullScreenMode: true.
World restoreDisplay].
fillScreenFlag _ true.
self position: 0 @ 0.
self isSticky: true.
self comeToFront.
UseErrorCatcher _ true.
Sensor useOSEvents: true.
Preferences enable: #noviceMode.
Preferences disable: #warnIfNoSourcesFile.
Preferences disable: #warnIfNoChangesFile.
Preferences insertionPointColor: (Color
r: 0.353
g: 0.607
b: 0.788).
Preferences textHighlightColor: (Color
r: 0.353
g: 0.607
b: 0.788).
self updateProjectName.
self stepSo, can sombody help me?
Edit: Oh, by the way, I copied the code right from: Scratch-UI-Panes -> ScratchFrameMorph -> menu/button actions -> fillScreenOn & fillScreenOff
Last edited by owetre18 (2011-07-08 19:12:33)
Offline
Offline
Offline
Offline
jslomba wrote:
you can do for the code
t1 _ self ownerThatIsA: ScratchFrameMorph.
t1 fillScreenOn
and
t1 _ self ownerThatIsA: ScratchFrameMorph.
t1 fillScreenOff
OMG thank you. Time to squeak (program)
Offline