>* button.init >messagebox("button 1 fires") >>Obviously this is for testing only, but it shows me that only the first 2 buttons reach the init code. My ultimate purpose is to set the enabled property based on the users authorization but that's less visible than the messagebox. (not really but not as dramatic)
>* baseclass.button.init >thisform.resizeobject(this) >if authlevel < this.authorization > this.enabled = .F. >endif >dodefault() > >* baseclass.buttongroup.init >thisform.resizeobject(this) >for each loButton in this.Buttons >thisform.resizeobject(loButton) >next >if authlevel < this.authorization >this.enabled = .F. >endif >dodefault() >>Nothing really exotic.
lcText = [] FOR EACH oButton IN thisform.OptionGroupXX.Buttons && Put the real name of the option group here lcText = lcText + oButton.Name + [ ]+oButton.Class+CHR(13)+CHR(10) NEXT MessageBox(lcText)