in reply to Verification DialogBox

The problem i'm encountering is that the DialogBox widget is blinking, meaning you have to click yes or no multiple times before it disappears. I cant seem to fix the problem. Any ideas?

From the description of your problem (and a quick look at the code which I can't run), the "blinking" is actually multiple DialogBoxes popping up in succesion until the $ver is set right. You have

if ( $ver == 1) { for (;;){ if ($ver == 2) {last} if ($ver == 0) { goto NO} }
in a thread, then in main you are popping the DialogBox depending on the value of $ver from a timer (every second).

Fix your verway timer callback. In your sub verway(called by a timer), have a check so that if the DialogBox is currently displayed, it won't display it again. It's as simple as setting a global $is_dialog_up to 0 or 1.


I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Verification DialogBox
by carmen (Initiate) on May 24, 2007 at 14:39 UTC
    I agree with what zentara said -- I think its the timer. You could also set $ver to something other than 1 as soon as you enter the if; that way if the timer does go off before the user presses yes or no then "if ($ver==1)" won't be true.