Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
MODULE Click EXPORTS Main;
|
||||
|
||||
IMPORT Fmt, TextVBT, ButtonVBT, VBT, Axis, HVSplit, TrestleComm, Trestle;
|
||||
|
||||
VAR label := TextVBT.New("There have been no clicks yet.");
|
||||
button := ButtonVBT.New(TextVBT.New("Click me!"), Clicked);
|
||||
main := HVSplit.Cons(Axis.T.Ver, label, button, adjustable := FALSE);
|
||||
count := 0;
|
||||
|
||||
PROCEDURE Clicked(<*UNUSED*>button: ButtonVBT.T; <*UNUSED*>READONLY cd: VBT.MouseRec) =
|
||||
BEGIN
|
||||
INC(count);
|
||||
TextVBT.Put(label, "Button pressed: " & Fmt.Int(count));
|
||||
END Clicked;
|
||||
|
||||
<*FATAL TrestleComm.Failure*>
|
||||
BEGIN
|
||||
Trestle.Install(main);
|
||||
Trestle.AwaitDelete(main);
|
||||
END Click.
|
||||
Loading…
Add table
Add a link
Reference in a new issue