func init // adds using namespace sys.add_use('System.Windows.Forms') // initialize instance sys.add_object(this.codename, 'ColorDialog') // initialize properties sys.set_typed_field(104, 'AllowFullOpen') sys.set_typed_field(104, 'AnyColor') sys.set_typed_field(8, 'Color') sys.set_typed_field(104, 'FullOpen') sys.set_typed_field(104, 'ShowHelp') sys.set_typed_field(104, 'SolidColorOnly') // makes implementation methods for properties sys._prop_init('AllowFullOpen', 1, 1, 104) sys._prop_init('AnyColor', 1, 1, 104) sys._prop_init('Color', 1, 1, 0) sys._prop_init('CustomColors', 1, 1, 0) sys._prop_init('FullOpen', 1, 1, 104) sys._prop_init('ShowHelp', 1, 1, 104) sys._prop_init('SolidColorOnly', 1, 1, 104) // makes implementation of simple methods sys._method_init('Reset') // initialize common events and properties include("CommonDialog-init") include("Component-init") end include("CommonDialog")