We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › popup box from sketch
Page Index Toggle Pages: 1
popup box from sketch? (Read 1045 times)
popup box from sketch?
Nov 11th, 2006, 9:24pm
 
I'd like to have my game poll a website to check for a new version the same way that Processing checks for new versions of the PDE. The polling a website thing I'm pretty sure I know how to do, but it's not clear how or even if it is possible to create a popup box to alert the user that there is a new version of the game and a yes and no button, like what the PDE pops up.
Re: popup box from sketch?
Reply #1 - Nov 12th, 2006, 9:52am
 
use the javascript library
http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/packages.htm#1003191
and use a confirm() function to get a yes/no box

-seltar
Re: popup box from sketch?
Reply #2 - Nov 12th, 2006, 4:38pm
 
Ah, should have mentioned this is for an application, not an applet.
Re: popup box from sketch?
Reply #3 - Nov 12th, 2006, 8:41pm
 
Does it really need to be a popup, or could you just write the message to the sketch and require the user to click past it?
Re: popup box from sketch?
Reply #4 - Nov 13th, 2006, 1:57am
 
That's what I wound up doing, actually. Though it would still be good to know an easy way to make a popup. I did manage to setup a swing popup, but it had the undesirable behaviour of closing the whole app when I closed the swing popup. Probably that's mostly due to me not knowing how to use swing.
Page Index Toggle Pages: 1