func init // adds using namespace sys.add_use('GongSolutions.Shell') // adds widget assembly sys.add_assembly('GongShell', 'GongShell.dll') // add widget sys.add_widget('FileFilterComboBox') // initialize properties blk_init.println(this.codename, '.FormattingEnabled = true;') sys.set_typed_field(2, 'Filter') sys.set_typed_field(2, 'FilterItems') sys.set_typed_field(20, 'ShellView') // make methods for properties sys._prop_init('Filter', 1, 1, 2) sys._prop_init('FilterItems', 1, 1, 2) sys._prop_init('ShellView', 1, 1, 0) // makes implementation of methods as properties sys._mtd_as_prop_init('FileFilterComboBox') // initialize common events and properties include("Control-init") end func doGenerateRegex(data) event("onGenerateRegex", this.codename + '.GenerateRegex(' + d("Wildcard") + ')') end include("Control")