>Hilmar,
>
>Thanks for the quick response. How do I go about adding a custom method for an object based on a class? I'm fairly new at creating objects at runtime.
Create your own checkbox class, and write whatever you want in its click method. Then you add that instead of standard checkbox:
.addobject("chk1","MyCheckboxClass")
or, if you don't want to Set Classlib to MyClasslib Additive, you can alternately do
.newobject("chk1","MyCheckboxClass","MyClasslib.vcx")