예제 #1
0
        public ControlRowEntry(int id , List<ControlEntryProperties> cep, int vpos, int vsize , Control p )
        {
            RowId = id;
            parent = p;

            items = new List<Control>();
            for (int i = 0; i < cep.Count; i++)
            {
                if (cep[i].text.Length > 11 && cep[i].text.Substring(0,11).Equals("!!<EDSMBUT:"))
                {
                    ExtendedControls.DrawnPanel edsm = new ExtendedControls.DrawnPanel();
                    edsm.Name = cep[i].text.Substring(11);
                    edsm.Image = DrawnPanel.ImageType.Text;
                    edsm.ImageText = "EDSM";
                    edsm.Size = new Size(100, vsize);
                    edsm.MarginSize = -1;       // 0 is auto calc, -1 is zero
                    edsm.Location = new Point(0, vpos);
                    parent.Controls.Add(edsm);
                    items.Add(edsm);
                }
                else
                {
                    LabelExt lab = new ExtendedControls.LabelExt();
                    lab.Text = cep[i].text;
                    lab.Location = new Point(0, vpos);
                    lab.AutoSize = false;
                    lab.Size = new Size(100, vsize);
                    parent.Controls.Add(lab);
                    items.Add(lab);
                }
            }
        }
예제 #2
0
        }                              // row id of creator..

        public ControlRowEntry(int id, List <ControlEntryProperties> cep, int vpos, int vsize, Control p)
        {
            RowId  = id;
            parent = p;

            items = new List <Control>();
            for (int i = 0; i < cep.Count; i++)
            {
                if (cep[i].text.Length > 11 && cep[i].text.Substring(0, 11).Equals("!!<EDSMBUT:"))
                {
                    ExtendedControls.DrawnPanel edsm = new ExtendedControls.DrawnPanel();
                    edsm.Name       = cep[i].text.Substring(11);
                    edsm.Image      = DrawnPanel.ImageType.Text;
                    edsm.ImageText  = "EDSM";
                    edsm.Size       = new Size(100, vsize);
                    edsm.MarginSize = -1;       // 0 is auto calc, -1 is zero
                    edsm.Location   = new Point(0, vpos);
                    parent.Controls.Add(edsm);
                    items.Add(edsm);
                }
                else
                {
                    LabelExt lab = new ExtendedControls.LabelExt();
                    lab.Text     = cep[i].text;
                    lab.Location = new Point(0, vpos);
                    lab.AutoSize = false;
                    lab.Size     = new Size(100, vsize);
                    parent.Controls.Add(lab);
                    items.Add(lab);
                }
            }
        }
예제 #3
0
 public CompositeButton()
 {
     backgroundpanel   = new Panel();
     textlab           = new LabelExt();
     textlab.AutoSize  = false;
     textlab.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     textlab.BackColor = Color.Transparent;
     backgroundpanel.Controls.Add(textlab);
     Controls.Add(backgroundpanel);
 }