func init // adds using namespace sys.add_use('System.Windows.Forms') // initialize instance sys.add_widget('RadioButton') // initialize properties sys.set_undef_field_const('Appearance', this.props('Appearance'), 'System.Windows.Forms.Appearance') sys.set_typed_field(104, 'AutoCheck') sys.set_undef_field_const('CheckAlign', this.props('CheckAlign'), 'System.Drawing.ContentAlignment') sys.set_typed_field(104, 'Checked') // makes implementation methods for properties sys._prop_init('Appearance', 1, 1, 0) sys._prop_init('AutoCheck', 1, 1, 104) sys._prop_init('CheckAlign', 1, 1, 0) sys._prop_init('Checked', 1, 1, 104) // makes implementation of methods as properties sys._mtd_as_prop_init('RadioButton') // makes implementation of simple methods sys._method_init('PerformClick') // initialize events sys.add_event_type('onAppearanceChanged', 'AppearanceChanged', 'Event', 'args') sys.add_event('onCheckedChanged', 'CheckedChanged', this.codename + '.Checked') // initialize common events and properties include("ButtonBase-init") include("Control-init") end include("ButtonBase") include("Control")