Esempio n. 1
0
        public AndroidTitleBar()
        {
            InitializeComponent();

            this.btnBack = new Landriesnidis.LCL_Controls.Controls.Button.MiniImageButton();
            this.btnFunc = new Landriesnidis.LCL_Controls.Controls.Button.MiniImageButton();

            stateColor = btnBack.MiniImageButtonColor;
            btnFunc.MiniImageButtonColor        = stateColor;
            stateColor.LostFocusBackgroundColor = stateColor.MouseLeaveBackgroundColor;
            stateColor.LostFocusForegroundColor = stateColor.MouseLeaveForegroundColor;
            labTitle.BackColor = stateColor.MouseLeaveBackgroundColor;
            labTitle.ForeColor = stateColor.MouseLeaveForegroundColor;


            this.btnBack.AllowNoFocusResponseMouseEvent = true;
            this.btnBack.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(122)))), ((int)(((byte)(204)))));
            this.btnBack.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
            this.btnBack.Dock     = System.Windows.Forms.DockStyle.Left;
            this.btnBack.Image    = global::Landriesnidis.LCL_Controls.Properties.Resources.android_title_bar_arrow;
            this.btnBack.Location = new System.Drawing.Point(0, 0);
            this.btnBack.Name     = "btnBack";
            this.btnBack.Size     = new System.Drawing.Size(Height, Height);
            this.btnBack.TabIndex = 1;


            this.btnFunc.AllowNoFocusResponseMouseEvent = true;
            this.btnFunc.BackColor             = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(122)))), ((int)(((byte)(204)))));
            this.btnFunc.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
            this.btnFunc.Dock     = System.Windows.Forms.DockStyle.Right;
            this.btnFunc.Image    = global::Landriesnidis.LCL_Controls.Properties.Resources.android_title_bar_detail;
            this.btnFunc.Location = new System.Drawing.Point(465, 0);
            this.btnFunc.Name     = "btnFunc";
            this.btnFunc.Size     = new System.Drawing.Size(Height, Height);
            this.btnFunc.TabIndex = 2;

            btnBack.Click += BtnBack_Click;
            btnFunc.Click += BtnFunc_Click
            ;
            this.Controls.Add(this.btnFunc);
            this.Controls.Add(this.btnBack);
        }
Esempio n. 2
0
        public NavigationTitleBar()
        {
            InitializeComponent();

            stateColor = LeftButton.MiniImageButtonColor;
            RightButton.MiniImageButtonColor    = stateColor;
            LeftButton.MiniImageButtonColor     = stateColor;
            stateColor.LostFocusBackgroundColor = stateColor.MouseLeaveBackgroundColor;
            stateColor.LostFocusForegroundColor = stateColor.MouseLeaveForegroundColor;
            TitleLabel.BackColor = stateColor.MouseLeaveBackgroundColor;
            TitleLabel.ForeColor = stateColor.MouseLeaveForegroundColor;

            LeftButton.Click  += LeftButton_Click;
            RightButton.Click += RightButton_Click;
            TitleLabel.Click  += TitleLabel_Click;

            this.LeftButton.Image = global::Landriesnidis.LCL_Controls.Properties.Resources.android_title_bar_arrow;
            this.LeftButton.Size  = new System.Drawing.Size(Height, Height);

            this.RightButton.Image = global::Landriesnidis.LCL_Controls.Properties.Resources.android_title_bar_arrow_right;
            this.RightButton.Size  = new System.Drawing.Size(Height, Height);
        }