Exemple #1
0
 protected virtual void InitializeButton()
 {
     _button        = new SpeedButton();
     _button.Image  = SpeedButton.ResourceBitmap(typeof(LookupPanel), "Alphora.Dataphor.DAE.Client.Controls.Images.Lookup.bmp");
     _button.Parent = this;
     _button.Size   = MinButtonSize();
     _button.Click += new EventHandler(LookupButtonClick);
 }
 private void InitializeDownButton()
 {
     _downButton            = new SpeedButton();
     _downButton.BackColor  = SystemColors.Control;
     _downButton.Parent     = _scrollBox;
     _downButton.Cursor     = Cursors.Arrow;
     _downButton.MouseDown += new MouseEventHandler(DoDownButtonMouseDown);
     _downButton.MouseUp   += new MouseEventHandler(DoDownButtonMouseUp);
     _downButton.Image      = SpeedButton.ResourceBitmap(typeof(NumericScrollBox), "Alphora.Dataphor.DAE.Client.Controls.Images.DownButton.bmp");
     _downButton.Width      = _downButton.Image.Width + 8;
 }
        public DateLookup() : base()
        {
            SuspendLayout();

            _textBox          = new DBDateTextBox();
            _textBox.Parent   = this;
            _textBox.Location = Point.Empty;

            Size = _textBox.Size + (DisplayRectangle.Size - Size);

            Button.Image = SpeedButton.ResourceBitmap(typeof(DateLookup), "Alphora.Dataphor.DAE.Client.Controls.Images.Calendar.png");

            ResumeLayout(false);
        }