コード例 #1
0
ファイル: TimeDialog.cs プロジェクト: Bgoon/BigPicture
        private void CreateControls()
        {
            SuspendLayout();

            yyText = new AAText();
            mmText = new AAText();
            ddText = new AAText();
            hhText = new AAText();

            yyText.BackColor = mmText.BackColor = ddText.BackColor = hhText.BackColor = Color.Transparent;
            yyText.Cursor    = mmText.Cursor = ddText.Cursor = hhText.Cursor = Cursors.SizeNS;
            yyText.Location  = new Point(yyTextRight, 26);
            mmText.Location  = new Point(mmTextRight, 54);
            ddText.Location  = new Point(ddTextRight, 54);
            hhText.Location  = new Point(hhTextRIght, 54);

            yyText.Font     = mmText.Font = ddText.Font = hhText.Font = FontManager.만화진흥원체;
            yyText.FontSize = 16;
            mmText.FontSize = ddText.FontSize = hhText.FontSize = 24;
            yyText.color    = mmText.color = ddText.color = hhText.color = Color.FromArgb(184, 184, 184);

            Controls.Add(yyText);
            Controls.Add(mmText);
            Controls.Add(ddText);
            Controls.Add(hhText);

            panelImage.SendToBack();
            hhText.BringToFront();

            ResumeLayout();
        }
コード例 #2
0
ファイル: DetailPanel.cs プロジェクト: Bgoon/BigPicture
        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();
        }