Anonymous user
Simple windowed application: Difference between revisions
no edit summary
(added VB, moved RapidQ after R) |
No edit summary |
||
Line 497:
w.show()
}</lang>
=={{header|Fantom}}==
<lang fantom>
using fwt
using gfx
class SimpleApplication
{
public static Void main ()
{
Window
{
title = "Simple Window Application"
size = Size(350, 50)
clicked := 0
label := Label
{
text = "There have been no clicks yet"
}
Button
{
text = "Click me"
onAction.add |Event e|
{
clicked += 1
label.text = "There have been $clicked clicks"
}
},
label,
}.open
}
}
</lang>
=={{header|Forth}}==
|