Help Please

Just starting out? Need help? Post your questions and find answers here.
sk8terboi
User
User
Posts: 26
Joined: Mon Jun 06, 2005 3:40 am

Help Please

Post 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
Josh
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post 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
sk8terboi
User
User
Posts: 26
Joined: Mon Jun 06, 2005 3:40 am

Post by sk8terboi »

My program isn't working. Can I PM it to you?
Thanks :!: :P
Josh
Post Reply