Example #1
0
 public void Initialize(Control host, ScrollableContentControl control)
 {
     this.editor            = (TokenizerEditorBox)control;
     this.editor.content    = this;
     this.host              = host;
     this.editor.host       = host;
     this.temporaryGraphics = Graphics.FromHwnd(host.Handle);
     this.host.MouseDown   += new MouseEventHandler(host_MouseDown);
     this.host.MouseMove   += new MouseEventHandler(host_MouseMove);
     this.host.MouseUp     += new MouseEventHandler(host_MouseUp);
     this.host.KeyDown     += new KeyEventHandler(host_KeyDown);
     this.host.KeyUp       += new KeyEventHandler(host_KeyUp);
     this.host.MouseWheel  += new MouseEventHandler(host_MouseWheel);
 }
Example #2
0
 public void Initialize(Control host, ScrollableContentControl container)
 {
     host.Cursor = Cursors.IBeam;
 }