Jump to content

Simple windowed application: Difference between revisions

no edit summary
m (Changed hash-bang to full pathname)
No edit summary
Line 649:
}</lang>
 
=={{header|Liberty BASIC}}==
<lang lb>nomainwin
button #demo.btn, "Click Me", [btnClick], UL, 20, 50
statictext #demo.num, "There have been no clicks yet.", 20, 100, 240, 30
open "Rosetta Task: Simple windowed application" for window as #demo
#demo "trapclose [quit]"
nClicks = 0
wait
 
[quit]
close #demo
end
 
[btnClick]
nClicks = nClicks + 1
#demo.num "The button has been clicked ";nClicks;" times."
wait</lang>
 
=={{header|Lua}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.