Pause Dialog Box
esmaras
Function dialog()
NewPanel /W=(50,50,250,140) /N=NextLoop
DrawText 40,30,"Ready for Light Mode?"
Button button1,pos={60,45},size={80,25},title="Yes",proc = kill
PauseForUser nextLoop
End
Function kill()
KillWindow NextLoop
End
NewPanel /W=(50,50,250,140) /N=NextLoop
DrawText 40,30,"Ready for Light Mode?"
Button button1,pos={60,45},size={80,25},title="Yes",proc = kill
PauseForUser nextLoop
End
Function kill(ctrlName) : ButtonControl
String ctrlName
KillWindow NextLoop
End
The input string giving the control's name *must* be present, and it must have just that. Other controls require different formats; be sure to either use the Control Properties dialog to generate a skeleton for the action procedure, or look it up in the manual.
I've also fixed your indentation :)
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
July 8, 2014 at 05:37 pm - Permalink
July 9, 2014 at 06:14 am - Permalink