String GetClip() { var nf = IComponent_Util.GetTopLevelComponent(this) as NoForm; String ot; nf.window.GetClipboard(out ot); return(ot); }
void SetClip(String cs) { var nf = IComponent_Util.GetTopLevelComponent(this) as NoForm; if (nf != null) { nf.window.SetClipboard(cs); } }
public virtual void MouseMove(Point location, bool inComponent, bool amClipped) { if (inComponent && !amClipped) { var tzo = IComponent_Util.AmITopZOrder(this, location); if (tzo) { var tlc = IComponent_Util.GetTopLevelComponent(this); if (tlc is NoForm) { var nf = (tlc as NoForm); if (nf.window.Cursor != Cursor) { nf.window.Cursor = Cursor; } } } } }
protected override void OnLocationChanged() { base.OnLocationChanged(); tlc = IComponent_Util.GetTopLevelComponent(this); float abo = DisplayRectangle.top - lb.Size.height + 1f; float bel = DisplayRectangle.bottom - 1f; float abo_spc = DisplayRectangle.top; float bel_spc = tlc.Size.height - DisplayRectangle.bottom; float toppy = 0; switch (dropDirection) { case ComboBoxDirection.Above: toppy = abo; break; case ComboBoxDirection.Below: toppy = bel; break; case ComboBoxDirection.MostSpace: toppy = abo_spc > bel_spc ? abo : bel; break; case ComboBoxDirection.LeastSpace: toppy = abo_spc < bel_spc ? abo : bel; break; } if (dropPlatform == null) { lb.Location = new Point(DisplayRectangle.left, toppy); } if (ddf != null) { var ofp = tlc.Location + Location; ddf.Location = new Point(ofp.X, tlc.Location.Y + toppy); } }
void dropArrowThing_Clicked(Point loc) { tlc = IComponent_Util.GetTopLevelComponent(this); if (dropPlatform != null) { recreateddf(); } ComboBox_SizeChanged(Size); if (ddf == null) { tlc.components.Add(lb); } else { recreateddf(); ddf.window.Show(); } shown = true; OnLocationChanged(); }