Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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