Beispiel #1
0
 public DropTarget(HtmlControl owner, DataObjectConverter converter, Interop.IOleDropTarget originalDropTarget)
 {
     this._owner = owner;
     this._converter = converter;
     this._originalDropTarget = originalDropTarget;
 }
Beispiel #2
0
 protected virtual void InitializeUserInterface()
 {
     this._editor = this.CreateEditor();
     this._editor.Dock = DockStyle.Fill;
     this._editor.DesignModeEnabled = true;
     this._editor.MultipleSelectionEnabled = true;
     this._editor.AbsolutePositioningEnabled = true;
     this._editor.BordersVisible = true;
     this._editor.ScrollBarsEnabled = true;
     this._editor.FlatScrollBars = true;
     this._editor.ScriptEnabled = false;
     this._editor.Border3d = false;
     this._editor.DataObjectConverter = this.DataObjectConverter;
     this._editor.Glyphs.AddStandardGlyphs();
     foreach (EditorGlyph glyph in this._editor.Glyphs.StandardGlyphs)
     {
         if (!glyph.Tag.Equals("form"))
         {
             glyph.Visible = false;
         }
     }
     this._editor.Selection.SelectionChanged += new EventHandler(this.OnEditorSelectionChanged);
     this._editor.ReadyStateComplete += new EventHandler(this.OnEditorReadyStateComplete);
     this._editor.ShowContextMenu += new ShowContextMenuEventHandler(this.OnEditorShowContextMenu);
     base.Controls.Add(this._editor);
     this.OnEditorCreated();
     this._timer = new Timer();
     this._timer.Interval = 500;
     this._timer.Tick += new EventHandler(this.OnTimerTick);
 }