Beispiel #1
0
 public ButtonCell(ButtonCell bc)
     : base(bc)
 {
     this.m_bColor = SystemColors.ControlDark;
     this.m_pForeColor = SystemColors.HighlightText;
     this.m_pBgColor = SystemColors.ControlDark;
     this.m_pBorderColor = SystemColors.ControlDarkDark;
     this.m_text = "";
     this.m_DetachImageList = new EventHandler(this.OnDetachImageList);
     this.m_buttonStyle = bc.m_buttonStyle;
     this.m_font = new Font(bc.m_font.Name, bc.m_font.Size, bc.m_font.Style);
     this.m_text = bc.m_text;
     this.m_textAlignment = bc.m_textAlignment;
     this.m_textPosition = bc.m_textPosition;
     this.m_imageAlignment = bc.m_imageAlignment;
     this.m_imagePosition = bc.m_imagePosition;
     this.m_autoResizeImage = bc.m_autoResizeImage;
     this.m_ia = new ImageAttributes();
     this.m_bColor = bc.m_bColor;
     this.m_pBgColor = bc.m_pBgColor;
     this.m_pBorderColor = bc.m_pBorderColor;
     this.m_pForeColor = bc.m_pForeColor;
     this.m_transparentColor = bc.m_transparentColor;
     this.m_bAutoTransparent = bc.m_bAutoTransparent;
     this.m_touchMargin = bc.m_touchMargin;
     this.m_bPressed = bc.m_bPressed;
     this.m_defaultImage = bc.m_defaultImage;
     this.m_defaultImageVGA = bc.m_defaultImageVGA;
     this.m_pressedImage = bc.m_pressedImage;
     this.m_pressedImageVGA = bc.m_pressedImageVGA;
     base.Selectable = bc.Selectable;
 }
Beispiel #2
0
 protected internal virtual void OnButton(ButtonCell c, Resco.Controls.AdvancedComboBox.ListItem item, Point index, int yOffset)
 {
     if (this.ButtonClick != null)
     {
         this.ButtonClick(this, new CellEventArgs(item, c, index.X, index.Y, yOffset));
     }
 }