1. [WIN] Could it be a misfire?

Howdy y'all!

Once again, I think I may have uncovered a bug in
win32lib.ew.  This time it concerns radio controls on
tab items, specifically a possible misfiring on the
radio controls' onClick events.

Because the code causing the problem is integrated
into a lot of code, I'll not tick off the list by
attaching all of it.  If you want to take a look at
the bug in action, give me a holler and I'll send the
code to you privately.

Anyhoo, here's the set-up:

I have a window with three tab items.  On tab item 2
there are four radio buttons (not enclosed in a group
control) with the run-time id's of 74, 75, 76, 77. 
All of these radios fire the same procedure when
clicked ... the procedure tells which one fired the
event by using getSelf().

Now then, if I do not click any of these radio
buttons, I can go from tab 2 to tab 1 without a
problem. 

If I click one of the radio controls, the code works
as it should.  But, if I then click tab 1, all radios
with an id number higher than the currently checked
radio mysteriously respond to an onClick event.

In other words:

1.  I click on radio 75.  All is well.
2.  I click on the tab for tab item 1.

At this point, radios 76 and 77 fire off onClick
events, causing my poor little program to do something
Very Unexpected.  The interesting thing is, given the
above scenario, radio 74 does not fire an event.

The workaround for this was simple ... I just needed
to write in code to verify that the responsible
control is checked.  But, I reckon it's something that
needs to be looked into just the same.

Happy Hunting,

Travis Beaty
Claude, Texas.

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu