IonicWind Snippit Manager 2.xx Released! Install it on a memory stick and take it with you! With or without IWBasic!
Started by Bruce Peaslee, October 26, 2016, 04:48:44 PM
0 Members and 1 Guest are viewing this topic.
Select @MESSAGE Case WM_CLOSE MessageBox 0, "Closing", "L", 0
case @IDCANCEL MESSAGEBOX(dlg,"Are You sure?","error",@MB_ICONSTOP | @MB_RETRYCANCEL)
Quote from: Egil on October 27, 2016, 01:06:16 PMAdding this code worked for me with EB long time ago:Code Select Expandcase @IDCANCEL MESSAGEBOX(dlg,"Are You sure?","error",@MB_ICONSTOP | @MB_RETRYCANCEL)Egil
Select @MESSAGE Case WM_SYSCOMMAND If (@CODE == SC_CLOSE) and (dlgAgenda_ItemsPending() > 0) If MessageBox( dlgAgenda, msg, "Warning", @MB_YESNO|@MB_ICONEXCLAMATION) == @IDYES CloseDialog(dlgAgenda) EndIf Return true EndIf
QuoteI am not positive why it works, but I am too tired tonight to figure it out.