On Mon, Jan 4, 2010 at 12:51 PM, David Ruggles <[email protected]> wrote:
> Ok, thank you. That is what I did and it works. However, the next question I
> have is can I have it do something when the check box is changed without
> having to click a button?
Sure, connect the check box event to a method in your dialog and when
the method is invoked, do what you want.
Something like this:
::method defineDialog
...
self~connectButtonNotify(10, "CLICKED", onCheckBoxClick)
...
::method onCheckBoxClick
chk = self~getCheckControl(10)
if chk~isChecked == "CHECKED" then do
-- The click on the button checked it,
-- do what you want
end
else do
-- The click just unchecked the button,
-- do what you want.
end
...
Your dialog has to inherit AdvancedControls
--
Mark Miesfeld
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel