This repository has been archived on 2024-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
OldPascalProjects/Graphics/Controls/cc17_CalcIdea.pas
2024-03-10 20:32:51 +03:00

14 lines
418 B
ObjectPascal

// Модуль Controls - Калькулятор Light
uses Controls,GraphWPF;
begin
Window.Title := 'Калькулятор Light';
LeftPanel(150, Colors.Orange);
var tb := SetMainControl.AsTextBox;
tb.FontSize := 30;
var x := IntegerBox('X:',1,9);
var y := IntegerBox('Y:',1,9);
Button('Sum').Click := procedure -> begin
tb.Println($'{x.Value} + {y.Value} = {x.Value + y.Value}');
end;
end.