private void btonmenu_Click(object sender, EventArgs e) { if (panel1.Width == 35) { panel1.Visible = false; panel1.Width = 200; paneltransition.ShowSync(panel1); Logotransition.ShowSync(logo); } else { Mtronomo_logo_letras.Visible = false; logo.Visible = false; panel1.Visible = false; panel1.Width = 35; paneltransition.ShowSync(panel1); } }
private void btonmenu_Click_1(object sender, EventArgs e)//boton arrow contrae y expande panel { btonmenu.Image.RotateFlip(RotateFlipType.Rotate180FlipX); if (panel1.Height == 96)//expande { panel1.Visible = false; panel1.Height = 180; panel3.Height = 88; paneltransition.ShowSync(panel1); Logotransition.HideSync(logo); Logotransition.ShowSync(logo); } else { panel1.Height = 96; panel1.Visible = false; panel3.Height = 83; panel3.Height = 173; paneltransition.ShowSync(panel1); Logotransition.HideSync(logo); Logotransition.ShowSync(logo); } }
private void Acomodar_cajas() { String sele = tmp.selectedValue;//obtiene elvalor del combobox tmp switch (sele) { case "2/4": compas = 2; break; case "3/4": compas = 3; break; case "4/4": compas = 4; break; } int phorizontal = 17; //posicion horizontal de cada rectangulo for (int k = 0; k < compas; k++) //imprime todos los rectangulos //acomoda las cajas de los clicks { cajas[k] = new Bunifu.Framework.UI.BunifuThinButton2(); cajas[k].ActiveBorderThickness = 1; cajas[k].ActiveCornerRadius = 20; cajas[k].ActiveFillColor = Color.SeaGreen; cajas[k].ActiveForecolor = Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); cajas[k].ActiveLineColor = Color.SeaGreen; cajas[k].Anchor = AnchorStyles.Top | AnchorStyles.Bottom; cajas[k].BackColor = Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(46)))), ((int)(((byte)(59))))); cajas[k].ButtonText = ""; cajas[k].Cursor = Cursors.Hand; paneltransition.SetDecoration(cajas[k], BunifuAnimatorNS.DecorationType.None); Logotransition.SetDecoration(cajas[k], BunifuAnimatorNS.DecorationType.None); cajas[k].Font = new Font("Century Gothic", 12F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); cajas[k].ForeColor = Color.SeaGreen; cajas[k].IdleBorderThickness = 1; cajas[k].IdleCornerRadius = 20; cajas[k].IdleFillColor = Color.Transparent; cajas[k].IdleForecolor = Color.White; cajas[k].IdleLineColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(176)))), ((int)(((byte)(80))))); cajas[k].Location = new Point(phorizontal, 4); cajas[k].Margin = new Padding(5); if (panel3.Height == 173) { cajas[k].Size = new Size(80, 163); } else { cajas[k].Size = new Size(80, 78); } cajas[k].TabIndex = 4; cajas[k].TextAlign = ContentAlignment.MiddleCenter; separador_monitores.SendToBack(); separador_monitores.Controls.Add(cajas[k]); //muestra las cajas en el cajas[k].BringToFront(); phorizontal += 200; //aumenta para acomodar la siguiente caja } }