Page 1 of 1

Help Please

Posted: Fri Nov 25, 2005 8:06 pm
by sk8terboi
I am making a program. When the user exits, i want it to ask if he wants to save. How can I do that?
Thanks Much :!: :D

Posted: Fri Nov 25, 2005 8:40 pm
by Droopy

Code: Select all

If OpenWindow(0,0,0,222,200,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"ButtonGadgets") And CreateGadgetList(WindowID(0))
  Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf
If MessageRequester("","Save your project ?",#PB_MessageRequester_YesNo )=6
  File$ = SaveFileRequester("Please choose file to save", "", "Text (*.txt)|*.txt", 0)
EndIf

Posted: Sun Nov 27, 2005 10:03 pm
by sk8terboi
My program isn't working. Can I PM it to you?
Thanks :!: :P