Anonymous user
Simple windowed application: Difference between revisions
Category:Simple
(demos more interesting bits of the language) |
|||
Line 1:
{{task|GUI}}[[Category:Basic language learning]]{{requires|Graphics}} [[Category:Simple]]
This task asks to create a window with a label that says "There have been no clicks yet" and a button that says "click me".
Upon clicking the button with the mouse, the label should change and show the number of times the button has been clicked.
=={{header|Ada}}==
{{libheader|GTK|GtkAda}}
{{libheader|GtkAda}}
The following solution is based on bindings to GTK+.
Ada as a language does not provide standard GUI.
Apart from GtkAda, there exist numerous other GUI bindings and libraries:
CLAW, AdaGLUT, GWindow, JEWL, win32ada, QtAda etc.
<lang ada>with Gdk.Event; use Gdk.Event;
with Gtk.Button; use Gtk.Button;
Line 1,859 ⟶ 1,863:
=={{header|Scala}}==
{{libheader|Scala}}
<lang Scala>import scala.swing.{ BorderPanel, Button, Label, MainFrame, SimpleSwingApplication }
|