Inheritance: ContainerControl
Exemplo n.º 1
0
			public UpDownTextBox (UpDownBase owner)
			{
				this.owner = owner;

				SetStyle (ControlStyles.FixedWidth, false);
				SetStyle (ControlStyles.Selectable, false);
			}
            public UpDownTextBox(UpDownBase owner)
            {
                this.owner = owner;

                SetStyle(ControlStyles.FixedWidth, false);
                SetStyle(ControlStyles.Selectable, false);
            }
 public UpDownEditAccessibleObject(UpDownEdit owner, UpDownBase parent) : base(owner)
 {
     _parent           = parent.OrThrowIfNull();
     _owningUpDownEdit = owner;
     _textProvider     = new TextBoxBaseUiaTextProvider(owner);
     UseTextProviders(_textProvider, _textProvider);
 }
Exemplo n.º 4
0
            internal UpDownEdit(UpDownBase parent) : base()
            {
                SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true);
                SetStyle(ControlStyles.Selectable, false);

                _parent = parent;
            }
 public UpDownEditAccessibleObject(UpDownEdit owner, UpDownBase parent) : base(owner)
 {
     _parent           = parent ?? throw new ArgumentNullException(nameof(parent));
     _owningUpDownEdit = owner;
     _textProvider     = new TextBoxBaseUiaTextProvider(owner);
     UseTextProviders(_textProvider, _textProvider);
 }
Exemplo n.º 6
0
 internal UpDownButtons(UpDownBase parent) : base()
 {
     SetStyle(ControlStyles.Selectable, false);
     this.parent = parent;
     timer       = new Timer();
     pressed     = ButtonID.None;
     captured    = ButtonID.None;
 }
Exemplo n.º 7
0
		internal UpDownButtons(UpDownBase parent) : base()
		{
			SetStyle(ControlStyles.Selectable, false);
			this.parent = parent;
			timer = new Timer();
			pressed = ButtonID.None;
			captured = ButtonID.None;
		}
Exemplo n.º 8
0
			public UpDownSpinner(UpDownBase owner)
			{
				this.owner = owner;

				mouse_pressed = 0;

				SetStyle(ControlStyles.AllPaintingInWmPaint, true);
				SetStyle(ControlStyles.DoubleBuffer, true);
				SetStyle(ControlStyles.Opaque, true);
				SetStyle(ControlStyles.ResizeRedraw, true);
				SetStyle(ControlStyles.UserPaint, true);
				SetStyle(ControlStyles.FixedHeight, true);
				SetStyle(ControlStyles.Selectable, false);

				tmrRepeat = new Timer();

				tmrRepeat.Enabled = false;
				tmrRepeat.Interval = 10;
				tmrRepeat.Tick += new EventHandler(tmrRepeat_Tick);

				compute_rects();
			}
            public UpDownSpinner(UpDownBase owner)
            {
                this.owner = owner;

                mouse_pressed = 0;

                SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                SetStyle(ControlStyles.DoubleBuffer, true);
                SetStyle(ControlStyles.Opaque, true);
                SetStyle(ControlStyles.ResizeRedraw, true);
                SetStyle(ControlStyles.UserPaint, true);
                SetStyle(ControlStyles.FixedHeight, true);
                SetStyle(ControlStyles.Selectable, false);

                tmrRepeat = new Timer();

                tmrRepeat.Enabled  = false;
                tmrRepeat.Interval = 10;
                tmrRepeat.Tick    += new EventHandler(tmrRepeat_Tick);

                compute_rects();
            }
Exemplo n.º 10
0
 internal UpDownEdit(UpDownBase parent) : base()
 {
     this.parent      = parent;
     doubleClickFired = false;
 }
Exemplo n.º 11
0
		public UpDownBaseProvider (UpDownBase upDownBase) : base (upDownBase)
		{
		}
Exemplo n.º 12
0
			public UpDownBaseButtonProvider (UpDownBase upDownBase,
			                                 UpDownBaseButtonOrientation orientation)
				: base (null)
			{
				this.upDownBase = upDownBase;
				this.orientation = orientation;
			}
 internal UpDownButtons(UpDownBase parent)
 {
     base.SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth | ControlStyles.Opaque, true);
     base.SetStyle(ControlStyles.Selectable, false);
     this.parent = parent;
 }
 public UpDownEditAccessibleObject(UpDownBase.UpDownEdit owner, UpDownBase parent) : base(owner)
 {
     this.parent = parent;
 }
 internal UpDownEdit(UpDownBase parent)
 {
     base.SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true);
     base.SetStyle(ControlStyles.Selectable, false);
     this.parent = parent;
 }
Exemplo n.º 16
0
		public UpDownSpinner (UpDownBase owner)
		{
			this.owner = owner;	
		}
Exemplo n.º 17
0
		internal UpDownEdit(UpDownBase parent) : base()
		{
			this.parent = parent;
			doubleClickFired = false;
		}
 internal UpDownButtons(UpDownBase parent)
 {
     base.SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth | ControlStyles.Opaque, true);
     base.SetStyle(ControlStyles.Selectable, false);
     this.parent = parent;
 }
 public UpDownEditAccessibleObject(UpDownBase.UpDownEdit owner, UpDownBase parent) : base(owner)
 {
     this.parent = parent;
 }
 internal UpDownEdit(UpDownBase parent)
 {
     base.SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true);
     base.SetStyle(ControlStyles.Selectable, false);
     this.parent = parent;
 }
 public DomainUpDownAccessibleObject(DomainUpDown owner) : base(owner)
 {
     _owningDomainUpDown = owner;
 }
Exemplo n.º 22
0
 public UpDownSpinner(UpDownBase owner)
 {
     this.owner = owner;
 }
 /// <summary>
 /// Returns an observable sequence wrapping the BackgroundImageLayoutChanged event on the UpDownBase instance.
 /// </summary>
 /// <param name="instance">The UpDownBase instance to observe.</param>
 /// <returns>An observable sequence wrapping the BackgroundImageLayoutChanged event on the UpDownBase instance.</returns>
 public static IObservable <EventPattern <EventArgs> > BackgroundImageLayoutChangedObservable(this UpDownBase instance)
 {
     return(Observable.FromEventPattern <EventHandler, EventArgs>(
                handler => instance.BackgroundImageLayoutChanged += handler,
                handler => instance.BackgroundImageLayoutChanged -= handler));
 }
 /// <summary>
 /// Returns an observable sequence wrapping the MouseMove event on the UpDownBase instance.
 /// </summary>
 /// <param name="instance">The UpDownBase instance to observe.</param>
 /// <returns>An observable sequence wrapping the MouseMove event on the UpDownBase instance.</returns>
 public static IObservable <EventPattern <MouseEventArgs> > MouseMoveObservable(this UpDownBase instance)
 {
     return(Observable.FromEventPattern <MouseEventHandler, MouseEventArgs>(
                handler => instance.MouseMove += handler,
                handler => instance.MouseMove -= handler));
 }
 public UpDownButtonsAccessibleObject(UpDownBase.UpDownButtons owner) : base(owner)
 {
 }
 /// <summary>
 /// Returns an observable sequence wrapping the AutoSizeChanged event on the UpDownBase instance.
 /// </summary>
 /// <param name="instance">The UpDownBase instance to observe.</param>
 /// <returns>An observable sequence wrapping the AutoSizeChanged event on the UpDownBase instance.</returns>
 public static IObservable <EventPattern <EventArgs> > AutoSizeChangedObservable(this UpDownBase instance)
 {
     return(Observable.FromEventPattern <EventHandler, EventArgs>(
                handler => instance.AutoSizeChanged += handler,
                handler => instance.AutoSizeChanged -= handler));
 }
 public NumericUpDownAccessibleObject(NumericUpDown owner) : base(owner)
 {
     _owningNumericUpDown = owner;
 }
 public DirectionButtonAccessibleObject(UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject parent, bool up)
 {
     this.parent = parent;
     this.up = up;
 }