func init // adds using namespace sys.add_use('System.Windows.Forms') // initialize instance sys.add_widget('TrackBar') // initialize properties sys.set_typed_field(104, 'AutoSize') sys.set_undef_field('LargeChange') sys.set_undef_field('Maximum') sys.set_undef_field('Minimum') sys.set_undef_field_const('Orientation', this.props('Orientation'), 'System.Windows.Forms.Orientation') sys.set_typed_field(104, 'RightToLeftLayout') sys.set_undef_field('SmallChange') sys.set_undef_field('TickFrequency') sys.set_undef_field_const('TickStyle', this.props('TickStyle'), 'System.Windows.Forms.TickStyle') sys.set_undef_field('Value') // makes implementation methods for properties sys._prop_init('AutoSize', 1, 1, 104) sys._prop_init('LargeChange', 1, 1, 1) sys._prop_init('Maximum', 1, 1, 1) sys._prop_init('Minimum', 1, 1, 1) sys._prop_init('Orientation', 1, 1, 0) sys._prop_init('RightToLeftLayout', 1, 1, 104) sys._prop_init('SmallChange', 1, 1, 1) sys._prop_init('TickFrequency', 1, 1, 1) sys._prop_init('TickStyle', 1, 1, 0) sys._prop_init('Value', 1, 1, 1) // makes implementation of methods as properties sys._mtd_as_prop_init('TrackBar') // initialize events sys.add_event_type('onAutoSizeChanged', 'AutoSizeChanged', 'Event', 'args') sys.add_event_type('onRightToLeftLayoutChanged', 'RightToLeftLayoutChanged', 'Event', 'args') sys.add_event_type('onScroll', 'Scroll', 'Event', 'args') sys.add_event('onValueChanged', 'ValueChanged', this.codename + '.Value') // initialize common events and properties include("Control-init") end func doSetRange(minValue, maxValue) blk.println(this.codename, '.SetRange(', d("minValue"), ', ', d("maxValue"), ');') end include("Control")