1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
var textModified:boolean; procedure TForm2.FormCloseQuery(Sender: TObject; var CanClose: Boolean); begin if textModified then case MessageDlg('Сохранить изменения в тексте',TMsgDlgType.mtConfirmation, [tMsgDlgBtn.mbYes]+[tMsgDlgBtn.mbNo]+[tMsgDlgBtn.mbCancel],-1) of mrYes: memo1.Lines.SaveToFile('saved.txt'); mrNO: CanClose:=true; mrCancel: CanClose:=true; end end; |
-
MY PROJECTS
-
Recent Posts
- Js.Practice.ToDoList
- CSS.Grid
- Nginx. How to return json file?
- Js.React.AddEventsOnRender
- Js.React.Handling Event in Functional Components
- Js.React.ComponentState
- Js.React.Functional and class style
- Js.React.How react renders?
- JS.EventLoop
- JS.Promise.AsyncAwaitChain
- Js.Promise.AsyncAwait
- Js. Chain of promises
- Algo.Leetcode.111. Minimum Depth of Binary Tree
- Algo. Leetcode. 104. Maximum Depth of Binary Tree
- Algo. Leetcode. 100. Same Tree
- Js.InterviewTasks.CalcNumbersInFunctions
- Delphi. Const for managed types
- SQL.Group by
- GitExtensions.SSH.PuttyClient
- Delphi. What is difference to TProcedure, TMethod = procedure of object and TAnonMethod = reference to procedure ?
Categories
- Aptana
- Azure
- C#
- DataSnap
- DBExpress
- Delphi
- Delphi и сети
- Delphi. Язык программирования
- ExtJS
- FastReport
- FireDAC
- FireMonkey
- GIT
- ICS
- IDE
- IIS
- Indy
- InnoSetup
- javascript
- jQuery
- JSON
- LiveBindings
- MSHTML
- MySQL
- PHP
- REST
- Ribbons
- SMS
- SQL инструкции
- SVN
- TRichView
- UniGui
- WebBroker
- WinAPI
- Windows
- Алгоритмы
- Без рубрики
- Деревья
- Ищу ответ
- Компонентостроение
- Мои компоненты
- Начальный уровень
- Обработка исключений
- Парсинг
- Потоки(Threads)
- Регулярные выражения
- Тестирование приложений