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.
2024-03-10 20:32:51 +03:00

19 lines
741 B
ObjectPascal

// Модуль Controls - MessageBox
uses GraphWPF,Controls;
begin
Window.Title := 'Модуль Controls - MessageBox';
LeftPanel(150, Colors.Orange);
Button('MsgBoxOK').Click := () -> MessageBox.Show('Сообщение','Заголовок');
Button('MsgBoxYesNo').Click := () -> begin
if MessageBox.Show('Сообщение','Заголовок',MessageBoxButton.YesNo) = MessageBoxResult.Yes then
Print('Yes')
else Print('No');
end;
Button('MsgBoxWithQuestion').Click := () -> begin
if MessageBox.Show('Вы уверены?','Заголовок',MessageBoxButton.YesNo,MessageBoxImage.Question)
= MessageBoxResult.Yes then
Print('Уверен')
else Print('Нет');
end;
end.