Radio button callbacks happening twice and logging



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                |
+-----------------------------------------------------+



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