> I have a checkbox control. I'd like it to call a subroutine whenever it's > checked or unchecked. The code looks like this: > > PUBLIC SUB CheckBox_Preview_Water_Click() > > Preview.Refresh > > END > > The control and event are on the main form. "Preview" is a module and > "Refresh" is the procedure name in it. > > When I actually click the control it triggers the event, which executes > Preview.Refresh. After it finishes Preview.Refresh it returns to the event. > Just after executing the END statement of the event the event is > immediately called again, as if a second trigger had been queued. > > This behavior does not occur if I check/uncheck the checkbox using the > space bar. Any ideas why this could be happening or how I can circumvent > it? It also happened in the previous stable GAMBAS release. > > ----- > Kevin Fishburne, Eight Virtues > www: http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: mailto:sa...@eightvirtues.com sa...@eightvirtues.com > phone: (770) 853-6271
Please provide your project, or make a little project that reproduces the problem. And tell me if you use GTK+ or QT. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user