func init // adds using namespace sys.add_use('System.Windows.Forms') // initialize instance sys.add_widget('RichTextBox') // initialize properties sys.set_typed_field(104, 'AutoWordSelection') sys.set_undef_field('BulletIndent') sys.set_typed_field(104, 'DetectUrls') sys.set_typed_field(104, 'EnableAutoDragDrop') sys.set_typed_field(15, 'Font') sys.set_typed_field(8, 'ForeColor') sys.set_undef_field('MaxLength') sys.set_typed_field(104, 'Multiline') sys.set_undef_field('RightMargin') sys.set_undef_field_const('ScrollBars', this.props('ScrollBars'), 'System.Windows.Forms.RichTextBoxScrollBars') sys.set_typed_field(104, 'ShowSelectionMargin') if(not (this.prop_Text == 'defined')) sys.set_undef_field('Text') this.setfield('prop_Text', 'defined') end sys.set_typed_field(107, 'ZoomFactor') // makes implementation methods for properties sys._prop_init('AllowDrop', 1, 1, 104) sys._prop_init('AutoWordSelection', 1, 1, 104) sys._prop_init('BulletIndent', 1, 1, 1) sys._prop_init('CanRedo', 1, 0, 104) sys._prop_init('DetectUrls', 1, 1, 104) sys._prop_init('EnableAutoDragDrop', 1, 1, 104) sys._prop_init('Font', 1, 1, 0) sys._prop_init('ForeColor', 1, 1, 0) sys._prop_init('LanguageOption', 1, 1, 0) sys._prop_init('MaxLength', 1, 1, 1) sys._prop_init('Multiline', 1, 1, 104) sys._prop_init('RedoActionName', 1, 0, 2) sys._prop_init('RightMargin', 1, 1, 1) sys._prop_init('Rtf', 1, 1, 2) sys._prop_init('ScrollBars', 1, 1, 0) sys._prop_init('SelectedRtf', 1, 1, 2) sys._prop_init('SelectedText', 1, 1, 2) sys._prop_init('SelectionAlignment', 1, 1, 0) sys._prop_init('SelectionBackColor', 1, 1, 0) sys._prop_init('SelectionBullet', 1, 1, 104) sys._prop_init('SelectionCharOffset', 1, 1, 1) sys._prop_init('SelectionColor', 1, 1, 0) sys._prop_init('SelectionFont', 1, 1, 0) sys._prop_init('SelectionHangingIndent', 1, 1, 1) sys._prop_init('SelectionIndent', 1, 1, 1) sys._prop_init('SelectionLength', 1, 1, 1) sys._prop_init('SelectionProtected', 1, 1, 104) sys._prop_init('SelectionRightIndent', 1, 1, 1) sys._prop_init('SelectionTabs', 1, 1, 0) sys._prop_init('SelectionType', 1, 0, 0) sys._prop_init('ShowSelectionMargin', 1, 1, 104) sys._prop_init('Text', 1, 1, 2) sys._prop_init('UndoActionName', 1, 0, 2) sys._prop_init('ZoomFactor', 1, 1, 107) // makes implementation of methods as properties sys._mtd_as_prop_init('RichTextBox') // makes implementation of simple methods sys._method_init('Redo') // initialize events sys.add_event_type('onBackgroundImageChanged', 'BackgroundImageChanged', 'Event', 'args') sys.add_event_type('onContentsResized', 'ContentsResized', 'ContentsResizedEvent', 'args') sys.add_event_type('onDragDrop', 'DragDrop', 'DragEvent', 'args') sys.add_event_type('onDragEnter', 'DragEnter', 'DragEvent', 'args') sys.add_event_type('onHScroll', 'HScroll', 'Event', 'args') sys.add_event_type('onImeChange', 'ImeChange', 'Event', 'args') sys.add_event_type('onLinkClicked', 'LinkClicked', 'LinkClickedEvent', 'args') sys.add_event_type('onProtected', 'Protected', 'Event', 'args') sys.add_event_type('onSelectionChanged', 'SelectionChanged', 'Event', 'args') sys.add_event_type('onVScroll', 'VScroll', 'Event', 'args') // initialize common events and properties include("TextBoxBase-init") include("Control-init") end func doCanPaste(clipFormat) if(linked("onCanPaste")) event("onCanPaste", this.codename + '.CanPaste(' + d("clipFormat") + ')') else blk.println(this.codename, '.CanPaste(', d("clipFormat"), ');') end end func doFind(characterSet) if(linked("onFind")) event("onFind", this.codename + '.Find(' + d("characterSet") + ')') else blk.println(this.codename, '.Find(', d("characterSet"), ');') end end func doFind2(str) if(linked("onFind")) event("onFind", this.codename + '.Find(' + d("str") + ')') else blk.println(this.codename, '.Find(', d("str"), ');') end end func doFind3(characterSet, start) if(linked("onFind")) event("onFind", this.codename + '.Find(' + d("characterSet") + ', ' + d("start") + ')') else blk.println(this.codename, '.Find(', d("characterSet"), ', ', d("start"), ');') end end func doFind4(str, options) if(linked("onFind")) event("onFind", this.codename + '.Find(' + d("str") + ', ' + d("options") + ')') else blk.println(this.codename, '.Find(', d("str"), ', ', d("options"), ');') end end func doFind5(characterSet, start, end) if(linked("onFind")) event("onFind", this.codename + '.Find(' + d("characterSet") + ', ' + d("start") + ', ' + d("end") + ')') else blk.println(this.codename, '.Find(', d("characterSet"), ', ', d("start"), ', ', d("end"), ');') end end func doFind6(str, start, options) if(linked("onFind")) event("onFind", this.codename + '.Find(' + d("str") + ', ' + d("start") + ', ' + d("options") + ')') else blk.println(this.codename, '.Find(', d("str"), ', ', d("start"), ', ', d("options"), ');') end end func doFind7(str, start, end, options) if(linked("onFind")) event("onFind", this.codename + '.Find(' + d("str") + ', ' + d("start") + ', ' + d("end") + ', ' + d("options") + ')') else blk.println(this.codename, '.Find(', d("str"), ', ', d("start"), ', ', d("end"), ', ', d("options"), ');') end end func doGetCharIndexFromPosition(pt) if(linked("onGetCharIndexFromPosition")) event("onGetCharIndexFromPosition", this.codename + '.GetCharIndexFromPosition(' + d("pt") + ')') else blk.println(this.codename, '.GetCharIndexFromPosition(', d("pt"), ');') end end func doGetLineFromCharIndex(index) if(linked("onGetLineFromCharIndex")) event("onGetLineFromCharIndex", this.codename + '.GetLineFromCharIndex(' + d("index") + ')') else blk.println(this.codename, '.GetLineFromCharIndex(', d("index"), ');') end end func doGetPositionFromCharIndex(index) if(linked("onGetPositionFromCharIndex")) event("onGetPositionFromCharIndex", this.codename + '.GetPositionFromCharIndex(' + d("index") + ')') else blk.println(this.codename, '.GetPositionFromCharIndex(', d("index"), ');') end end func doLoadFile(path) blk.println(this.codename, '.LoadFile(', d("path"), ');') end func doLoadFile2(data, fileType) blk.println(this.codename, '.LoadFile(', d("data"), ', ', d("fileType"), ');') end func doLoadFile3(path, fileType) blk.println(this.codename, '.LoadFile(', d("path"), ', ', d("fileType"), ');') end func doPaste(clipFormat) blk.println(this.codename, '.Paste(', d("clipFormat"), ');') end func doSaveFile(path) blk.println(this.codename, '.SaveFile(', d("path"), ');') end func doSaveFile2(data, fileType) blk.println(this.codename, '.SaveFile(', d("data"), ', ', d("fileType"), ');') end func doSaveFile3(path, fileType) blk.println(this.codename, '.SaveFile(', d("path"), ', ', d("fileType"), ');') end include("TextBoxBase") include("Control")