Re: Radio button callbacks happening twice and logging



Nevermind. I found a place that I had some of my code
messed up. I'm no longer having this problem and I'm
not needing to use this static variable technique.

Jeff Shipman wrote:
> 
> Whenever you click a radio button that has not been depressed,
> it causes its callback to be executed twice. This can cause
> problems with stuff like logging when this callback is called
> because I only want things to be logged once rather than
> twice. The only thing I've thought of is setting a static
> variable and using the value of that to determine whether
> to really log or not. This seems rather kludgy to me and
> I was wondering if anybody has a better idea?
> 
> --
> +-----------------------------------------------------+
> | Jeff "Shippy" Shipman     E-Mail: shippy@cs.nmt.edu |
> | Computer Science Major    ICQ: 1786493              |
> | New Mexico Institute of Mining and Technology       |
> | Homepage: http://www.nmt.edu/~shippy                |
> +-----------------------------------------------------+

-- 
+-----------------------------------------------------+
| Jeff "Shippy" Shipman     E-Mail: shippy@cs.nmt.edu |
| Computer Science Major    ICQ: 1786493              |
| New Mexico Institute of Mining and Technology       |
| Homepage: http://www.nmt.edu/~shippy                |
+-----------------------------------------------------+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]