I'm probably missing something obvious, but is
there a way to control the generation of events
on ivib widgets?
I've got (excerpted from larger program) a TextButton
(call it 'tb2') with the following handler:
method handle_tb2(ev)
unchanged()
# More actions here...
end
method unchanged()
changeFlag := &null
tb1.set_is_shaded()
tb2.set_is_shaded()
end
other widgets in the interface call the following
method, which unshades tb1 and tb2:
method changed()
changeFlag := "yes"
tb1.clear_is_shaded()
tb2.clear_is_shaded()
end
My problem is that pressing tb2 'almost' works:
unchanged() is called as desired. But apparently
the:
tb2.set_is_shaded()
is generating another event on tb2, which
calls handle_tb2(ev) [again], which calls:
tb2.set_is_shaded()
and... [of course, the problem also exists by
symmetry on tb1].
None of the kludges I've tried have fixed the
problem satisfactorily, so I'm wondering if
it's possible to do something like:
method unchanged()
chngFlag := &null
every (tb1|tb2).disableEvents()
every (tb1|tb2).set_is_shaded()
every (tb1|tb2).enableEvents()
end
(sorry about the above, just saving some typing...)
Is there a way to do this? Is there something else
that works?
Thanks!
Steve
--
Steve Wampler <[EMAIL PROTECTED]>
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group