Beispiel #1
0
        private void Initialize()
        {
            textBox   = new AATextBox();
            renameBtn = new PictureBox();

            renameBtn.SizeMode = PictureBoxSizeMode.AutoSize;
            renameBtn.Image    = Resources.Layer_RenameBtn_on;

            textBoxBG           = new ThreePatch(Resources.Layer_TextBox_Left, Resources.Layer_TextBox_mid, Resources.Layer_TextBox_Right);
            textBox.BorderStyle = BorderStyle.None;
            textBox.Font        = new Font(FontManager.스웨거체.FontFamily, 16);
            textBox.BackColor   = Color.FromArgb(235, 235, 235);
            textBox.Location    = new Point(Layer.textPadding, (int)((textBoxBG.Height - textBox.Height) * 0.5f));
            textBoxBG.Visible   = false;

            Controls.Add(textBoxBG);
            Controls.Add(renameBtn);
            textBoxBG.Controls.Add(textBox);
            textBoxBG.SetWidth(MaxWidth);
            textBoxBG.BringToFront();
            textBox.BringToFront();
            renameBtn.BringToFront();

            Size = new Size(0, textBoxBG.left.Height);
            Render();
        }
Beispiel #2
0
        private void CreateControls()
        {
            SuspendLayout();

            panel           = new ThreePatch(Resources.Detail_Panel_Left, Resources.Detail_Panel_Mid, Resources.Detail_Panel_Right);
            panel.BackColor = Color.Transparent;
            text            = new AAText();
            text.BackColor  = Color.FromArgb(41, 41, 41);
            text.Font       = FontManager.만화진흥원체;
            text.FontSize   = 12;
            text.color      = Color.White;
            text.Location   = new Point(panel.left.Width, (panel.left.Height - text.Height) / 2 + 3);

            Controls.Add(panel);
            Controls.Add(text);
            text.BringToFront();

            ResumeLayout();
        }