Beispiel #1
0
        /// <summary>
        /// Style the listGroup as a component group control.
        /// </summary>
        /// <param name="listGroup"></param>
        private void styleListGroupAsGroup(ARA_ListGroup listGroup)
        {
            listGroup.ARA_ListGroupDropDownButton.Font    = this.Font;
            listGroup.ARA_ListGroupDropDownButton.Padding = new Padding(0);
            listGroup.ARA_ListGroupText.Font = this.Font;
            listGroup.BackColor       = System.Drawing.SystemColors.Control;
            listGroup.BackgroundColor = ARA_Colors.ARA_Gray1;
            listGroup.DropDownButtonFirstTrianglePadding  = -1;
            listGroup.DropDownButtonSecondTrianglePadding = -1;
            listGroup.DropDownButtonSize = new System.Drawing.Size(656, 37);
            listGroup.HoverColor         = ARA_Colors.ARA_Gray2;
            listGroup.ImeMode            = System.Windows.Forms.ImeMode.On;
            listGroup.ListParent         = null;
            listGroup.Location           = new System.Drawing.Point(31, 9);
            listGroup.Margin             = new System.Windows.Forms.Padding(0);
            listGroup.Name          = "arA_ListGroup1";
            listGroup.SelectedColor = ARA_Colors.ARA_Blue6;
            listGroup.Size          = new System.Drawing.Size(750, 415);
            listGroup.TextSize      = new System.Drawing.Size(94, 37);

            listGroup.Scale(new SizeF(ARA_Globals.ARA_BaseFontSize / ARA_Constants.noScaleFontSize, ARA_Globals.ARA_BaseFontSize / ARA_Constants.noScaleFontSize));
        }
Beispiel #2
0
        /// <summary>
        /// Style a component type listGroup as a componentType listgroup.
        /// </summary>
        /// <param name="listParent"></param>
        /// <param name="listGroup"></param>
        private void styleListGroupAsType(ARA_ListGroup listParent, ARA_ListGroup listGroup)
        {
            listGroup.ARA_ListGroupDropDownButton.Font = new System.Drawing.Font(ARA_Globals.ARA_Font, ARA_Globals.ARA_BaseFontSize);
            listGroup.ARA_ListGroupText.Font           = new System.Drawing.Font(ARA_Globals.ARA_Font, ARA_Globals.ARA_BaseFontSize);
            listGroup.BackColor       = Color.White;
            listGroup.BackgroundColor = Color.White;
            listGroup.DropDownButtonFirstTrianglePadding  = 5;
            listGroup.DropDownButtonSecondTrianglePadding = -1;
            listGroup.DropDownButtonSize = new System.Drawing.Size(656, 28);
            listGroup.HoverColor         = ARA_Colors.ARA_Blue4;
            listGroup.ImeMode            = System.Windows.Forms.ImeMode.On;
            listGroup.ListParent         = listParent;
            listGroup.Location           = new System.Drawing.Point(31, 9);
            listGroup.Margin             = new System.Windows.Forms.Padding(0);
            listGroup.Name          = "arA_ListGroup1";
            listGroup.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(160)))), ((int)(((byte)(198)))));
            listGroup.Size          = new System.Drawing.Size(750, 415);
            listGroup.TextSize      = new System.Drawing.Size(94, 28);
            listGroup.TextColor     = Color.Black;

            listParent.addChild(listGroup);
            listParent.addControlToDropDownButton(listGroup);
            listGroup.Scale(new SizeF(ARA_Globals.ARA_BaseFontSize / ARA_Constants.noScaleFontSize, ARA_Globals.ARA_BaseFontSize / ARA_Constants.noScaleFontSize));
        }