0

我目前正在使用 c# 和 flp。我的程序使用循环来添加按钮,例如 在此处输入图像描述

我需要红色按钮正下方的第三个按钮,以获得类似的视图 在此处输入图像描述

有任何想法吗?

我的代码:

        private void createButton(Entry e)
    {
        Button newButton = new Button();
        newButton.Text = e.title;
        newButton.BackColor = System.Drawing.Color.FromArgb(e.colorARGB);

        //sizing
        newButton.Size = new System.Drawing.Size(300, 60);
        newButton.Font = new System.Drawing.Font(newButton.Font.FontFamily, 18);
        newButton.Click += new EventHandler(newButton_Click);
        newButton.ForeColor = System.Drawing.Color.FromArgb((int)InvertColor((uint)newButton.BackColor.ToArgb()));
        newButton.Tag = Link_List.Count - 1;
        m_fLPQuickboard.Controls.Add(newButton);


        Button newButtonX = new Button();
        newButtonX.Text = "X";
        newButtonX.BackColor = System.Drawing.Color.FromName("Red");
        newButtonX.Size = new System.Drawing.Size(30, 30);
        newButtonX.Click += new EventHandler(newButtonX_Click);
        newButtonX.Tag = Link_List.Count - 1;

        //Tooltips
        ToolTip newButtonTooltip = new ToolTip();
        newButtonTooltip.SetToolTip(newButton, getParameterFileAsTooltip(e.path));
    }
4

0 回答 0