Simple windowed application: Difference between revisions

Line 3,233:
}
}</lang>
 
 
=={{header|Scratch}}==
<lang Scratch>
when flag clicked # when program is run
set counter to "0" # initialize counter object to zero
set message to "There have been no clicks"
show variable message # show the message object
 
when this sprite clicked # when button clicked
hide message # hide the initial message
change counter by 1 # increment the counter object
</lang>
 
==Comments and Description==
The Scratch IDE has a GUI drag and drop interface.
The program above is has both graphic and text objects.
The 'message' and 'counter' variables coded above are also graphic objects.
They are set to "large readout" rather than slider or normal.
The (implied) 'sprite' has a 'costume' set to "button".
 
[https://www.melellington.com/simplewindow/scratchoutput.jpg Scratch-Output]
 
=={{header|Sidef}}==