We finished adding MsgBox.pp and GUIMsgBox.pp in minilib
Both units for Pascal language, FreePascal and Lazaurs, but not worked for Delphi (sorry 😛 ).
Only you need to add MsgBox to your uses in the unit to use it, but you need to add GUIMsgBox once in the whale project, or it will work as console application.
Useing by call Msg.Yes or Msg.OK for example, there is many other calls, like Msg.Input or Msg.Password to ask for password.
If you not use GUIMsgBox for Lazarus, it will work as console or you can switch to console even if GUIMsgBox is used, by calling Msg.Switch(‘CONSOLE’);
Msg.Yes(‘Do you want to save?’)
Mean Yes/No but the default button is Yes
Msg.No(‘Do you want to save?’)
Mean Yes/No but the default button is No