func init // adds using namespace sys.add_use('System.Windows.Forms') sys.add_use('System.ComponentModel') // initialize a member if(not isdef('Name')) sys.add_var(this.name, 'ControlStyles') blk_init.println(this.codename, ' = ', this.ControlStyles(), ';') end // initialize parser sys._se_init('Parse', 'ControlStyles', 'ControlStyles') end func _se_make(value) return('(ControlStyles)Enum.Parse(typeof(ControlStyles), ' + d('Value') + ')') end func doMembers() blk.println('foreach (object item in TypeDescriptor.GetConverter(typeof(ControlStyles)).GetStandardValues()) {').inc() event('onMembers', 'item') blk.dec().println('}') end func ControlStyles() v = this.props('ControlStyles').value flags = ((v _and_ 1) ? '|ControlStyles.ContainerControl' : '') + ((v _and_ 2) ? '|ControlStyles.UserPaint' : '') + ((v _and_ 4) ? '|ControlStyles.Opaque' : '') + ((v _and_ 8) ? '|ControlStyles.ResizeRedraw' : '') + ((v _and_ 16) ? '|ControlStyles.FixedWidth' : '') + ((v _and_ 32) ? '|ControlStyles.FixedHeight' : '') + ((v _and_ 64) ? '|ControlStyles.StandardClick' : '') + ((v _and_ 128) ? '|ControlStyles.Selectable' : '') + ((v _and_ 256) ? '|ControlStyles.UserMouse' : '') + ((v _and_ 512) ? '|ControlStyles.SupportsTransparentBackColor' : '') + ((v _and_ 1024) ? '|ControlStyles.StandardDoubleClick' : '') + ((v _and_ 2048) ? '|ControlStyles.AllPaintingInWmPaint' : '') + ((v _and_ 4096) ? '|ControlStyles.CacheText' : '') + ((v _and_ 8192) ? '|ControlStyles.EnableNotifyMessage' : '') + ((v _and_ 16384) ? '|ControlStyles.DoubleBuffer' : '') + ((v _and_ 32768) ? '|ControlStyles.OptimizedDoubleBuffer' : '') + ((v _and_ 65536) ? '|ControlStyles.UseTextForAccessibility' : '') return('(0' + flags + ')') end