On Mar 8, 2007, at 3:56 PM, Peter K. Stys wrote: > I have an array of checkboxes, I want the clicked one to look checked > (like a radio button group, but I want checkboxes): > [SNIP] > You'd think this would be a no-brainer but it doesn't work because the > self.CheckBox1(j).value = true/false stmnts fire new Action events in > the other (jth) checkboxes so everything gets screwed up. > > I think firing events in response to control changes in done in code > is a dumb idea. Action is a user action, not a program's execution. > If I'm explicitly doing self.CheckBox1(j).value = true I don't need to > be told that I've just done this by having a new event fired! > > Ditto for TextChanged events in editfields, etc... > > There should be an easy way to tell whether an "event" was triggered > by the user vs. code. > > Don't others agree?
Not at all - I agree that this is exactly how it should work in each case. If you want to change this functionality, set a boolean flag when you change them by code that is monitored within the Action event and return from the action event if the flag is true to prevent the action code from executing. Tim -- Tim Jones [EMAIL PROTECTED] _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
