public WindowsBoxFrame() { this.lblTitle = new TransparentLabel(); this._titleBrowser = new WebView2(); InitializeComponent(); FormBorderStyle = FormBorderStyle.None; DoubleBuffered = true; SetStyle(ControlStyles.ResizeRedraw, true); Move += OnMove; Resize += OnResize; }
public override IViewWrapper ConvertTo(FigmaNode currentNode, ProcessedNode parent) { var figmaText = ((FigmaText)currentNode); var font = figmaText.style.ToFont(); //var textField = new Label (); var textField = new TransparentLabel(); textField.Font = font; textField.Text = figmaText.characters; textField.Configure(figmaText); var wrapper = new ViewWrapper(textField); return(wrapper); }
private void InitializeComponent() { this.lblCommandName = new CDBurnerXP.Controls.ListBoxPanel.TransparentLabel(); this.lblCommandText = new CDBurnerXP.Controls.ListBoxPanel.TransparentLabel(); this.lnkEdit = new System.Windows.Forms.LinkLabel(); this.lnkRemove = new System.Windows.Forms.LinkLabel(); this.lblMoveDown = new CDBurnerXP.Controls.ListBoxPanel.TransparentLabel(); this.lblMoveUp = new CDBurnerXP.Controls.ListBoxPanel.TransparentLabel(); this.SuspendLayout(); // // lblCommandName // this.lblCommandName.AutoHeight = false; this.lblCommandName.AutoSize = true; this.lblCommandName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); this.lblCommandName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblCommandName.Location = new System.Drawing.Point(3, 4); this.lblCommandName.Name = "lblCommandName"; this.lblCommandName.Size = new System.Drawing.Size(97, 13); this.lblCommandName.TabIndex = 0; this.lblCommandName.Text = "Command Name"; // // lblCommandText // this.lblCommandText.AutoHeight = false; this.lblCommandText.AutoSize = true; this.lblCommandText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); this.lblCommandText.Location = new System.Drawing.Point(3, 20); this.lblCommandText.Name = "lblCommandText"; this.lblCommandText.Size = new System.Drawing.Size(74, 13); this.lblCommandText.TabIndex = 1; this.lblCommandText.Text = "Command text"; // // lnkEdit // this.lnkEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.lnkEdit.AutoSize = true; this.lnkEdit.BackColor = System.Drawing.Color.Transparent; this.lnkEdit.Location = new System.Drawing.Point(225, 20); this.lnkEdit.Name = "lnkEdit"; this.lnkEdit.Size = new System.Drawing.Size(25, 13); this.lnkEdit.TabIndex = 2; this.lnkEdit.TabStop = true; this.lnkEdit.Text = "Edit"; this.lnkEdit.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkEdit_LinkClicked); // // lnkRemove // this.lnkRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.lnkRemove.AutoSize = true; this.lnkRemove.BackColor = System.Drawing.Color.Transparent; this.lnkRemove.Location = new System.Drawing.Point(253, 20); this.lnkRemove.Name = "lnkRemove"; this.lnkRemove.Size = new System.Drawing.Size(47, 13); this.lnkRemove.TabIndex = 3; this.lnkRemove.TabStop = true; this.lnkRemove.Text = "Remove"; this.lnkRemove.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkRemove_LinkClicked); // // lblMoveDown // this.lblMoveDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblMoveDown.AutoHeight = false; this.lblMoveDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); this.lblMoveDown.Cursor = System.Windows.Forms.Cursors.Hand; this.lblMoveDown.Image = global::Ketarin.Properties.Resources.Arrow_Down; this.lblMoveDown.Location = new System.Drawing.Point(283, 0); this.lblMoveDown.Name = "lblMoveDown"; this.lblMoveDown.Size = new System.Drawing.Size(17, 17); this.lblMoveDown.TabIndex = 5; this.lblMoveDown.Click += new System.EventHandler(this.lblMoveDown_Click); // // lblMoveUp // this.lblMoveUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblMoveUp.AutoHeight = false; this.lblMoveUp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); this.lblMoveUp.Cursor = System.Windows.Forms.Cursors.Hand; this.lblMoveUp.Image = global::Ketarin.Properties.Resources.Arrow_Up; this.lblMoveUp.Location = new System.Drawing.Point(266, -1); this.lblMoveUp.Name = "lblMoveUp"; this.lblMoveUp.Size = new System.Drawing.Size(17, 17); this.lblMoveUp.TabIndex = 4; this.lblMoveUp.Click += new System.EventHandler(this.lblMoveUp_Click); // // SetupInstructionListBoxPanel // this.Controls.Add(this.lblMoveDown); this.Controls.Add(this.lblMoveUp); this.Controls.Add(this.lnkRemove); this.Controls.Add(this.lnkEdit); this.Controls.Add(this.lblCommandText); this.Controls.Add(this.lblCommandName); this.Name = "SetupInstructionListBoxPanel"; this.Size = new System.Drawing.Size(303, 41); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeWeaponsButton() { for (Byte groupID = 0; groupID < Weapons.Common.Weapons.WeaponsArray.GetLength(0); groupID++) { for (Byte levelInGroup = 0; levelInGroup < Weapons.Common.Weapons.WeaponsArray.GetLength(1); levelInGroup++) { Weapon weapon = Weapons.Common.Weapons.WeaponsArray[groupID, levelInGroup]; if (weapon.Equals(default(Weapon))) { continue; } // ReSharper disable once HeapView.ClosureAllocation WeaponButton button = new WeaponButton() { Weapon = weapon, Size = new Size(WeaponsPanel.ButtonWidth, WeaponsPanel.ButtonHeight), }; button.Location = new Point( WeaponsPanel.LevelLabelWidth + (button.Size.Width + WeaponsPanel.DistanceBetweenButtons) * levelInGroup, (button.Size.Height + WeaponsPanel.DistanceBetweenButtons) * (groupID + 1)); #region Label with weapon level if (levelInGroup == 0) { TransparentLabel levelLabel = new TransparentLabel { Name = groupID.ToString(), Font = new Font(Font.Name, Font.Size, FontStyle.Bold | FontStyle.Italic), TextAlign = ContentAlignment.MiddleCenter, Size = new Size(WeaponsPanel.LevelLabelWidth, button.Size.Height), Location = new Point(0, button.Location.Y), Parent = Parent }; switch (weapon.AvailabilityLevel) { case Byte lvl when lvl > 0 && lvl <= 100: levelLabel.Text = lvl.ToString(); levelLabel.ForeColor = lvl == 100 ? Color.Orange : weapon.Color; break; case 101: levelLabel.Text = @"M"; levelLabel.ForeColor = Color.GreenYellow; break; case 102: levelLabel.Text = @"C"; levelLabel.ForeColor = Color.LightCoral; break; case 103: levelLabel.Text = @"GS"; levelLabel.ForeColor = Color.DarkGoldenrod; break; default: levelLabel.Text = @"U"; levelLabel.ForeColor = Color.DarkGray; break; } Controls.Add(levelLabel); } #endregion Controls.Add(button); } } }
private void InitializeComponent() { this.txtEmailAddress = new System.Windows.Forms.TextBox(); this.txtPassword = new System.Windows.Forms.TextBox(); this.btnLogin = new Nimbus.Controls.TextButton(); this.btnCancel = new Nimbus.Controls.TextButton(); this.lblEmailAddress = new Nimbus.Controls.TransparentLabel(); this.lblPassword = new Nimbus.Controls.TransparentLabel(); this.SuspendLayout(); // // txtEmailAddress // this.txtEmailAddress.Location = new System.Drawing.Point(104, 54); this.txtEmailAddress.Name = "txtEmailAddress"; this.txtEmailAddress.Size = new System.Drawing.Size(229, 20); this.txtEmailAddress.TabIndex = 0; // // txtPassword // this.txtPassword.Location = new System.Drawing.Point(104, 80); this.txtPassword.Name = "txtPassword"; this.txtPassword.PasswordChar = '*'; this.txtPassword.Size = new System.Drawing.Size(229, 20); this.txtPassword.TabIndex = 1; // // btnLogin // this.btnLogin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.btnLogin.Font = new System.Drawing.Font("Arial Narrow", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnLogin.HasShadow = false; this.btnLogin.IsToggle = false; this.btnLogin.Location = new System.Drawing.Point(58, 121); this.btnLogin.Name = "btnLogin"; this.btnLogin.Size = new System.Drawing.Size(78, 31); this.btnLogin.TabIndex = 3; this.btnLogin.Text = "Login"; this.btnLogin.Toggled = false; this.btnLogin.Tracking = 0; this.btnLogin.YOffset = 0; // // btnCancel // this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); this.btnCancel.Font = new System.Drawing.Font("Arial Narrow", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCancel.HasShadow = false; this.btnCancel.IsToggle = false; this.btnCancel.Location = new System.Drawing.Point(186, 121); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(97, 31); this.btnCancel.TabIndex = 4; this.btnCancel.Text = "Cancel"; this.btnCancel.Toggled = false; this.btnCancel.Tracking = 0; this.btnCancel.YOffset = 0; // // lblEmailAddress // this.lblEmailAddress.ForeColor = System.Drawing.Color.White; this.lblEmailAddress.Location = new System.Drawing.Point(6, 54); this.lblEmailAddress.Name = "lblEmailAddress"; this.lblEmailAddress.Size = new System.Drawing.Size(92, 20); this.lblEmailAddress.TabIndex = 5; this.lblEmailAddress.Text = "Email Address:"; this.lblEmailAddress.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblPassword // this.lblPassword.ForeColor = System.Drawing.Color.White; this.lblPassword.Location = new System.Drawing.Point(9, 80); this.lblPassword.Name = "lblPassword"; this.lblPassword.Size = new System.Drawing.Size(89, 20); this.lblPassword.TabIndex = 6; this.lblPassword.Text = "Password:"******"LoginForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeWeaponsButton() { foreach (Weapon weapon in Weapons.Common.Weapons.WeaponList) { // ReSharper disable once HeapView.ClosureAllocation WeaponButton button = new WeaponButton(weapon) { FlatAppearance = { BorderSize = 0, BorderColor = BackColor }, Size = new Size(90, 35), }; button.Location = new Point(50 + (button.Size.Width + 30) * weapon.LevelInGroup, (button.Size.Height + 5) * (weapon.GroupID + 1)); Button imageLabel = new Button() { BackColor = button.BackColor, Size = new Size(button.Height, button.Height), Location = new Point(button.Location.X - 25, button.Location.Y), FlatAppearance = { BorderSize = 0, BorderColor = button.BackColor }, FlatStyle = FlatStyle.Flat, TabStop = false, Image = weapon.Image != null ? new Bitmap(weapon.Image, new Size(button.Height, button.Height)) : null }; imageLabel.Click += (sender, args) => button.PerformClick(); #region Label with weapon level if (weapon.LevelInGroup == 0) { TransparentLabel levelLabel = new TransparentLabel { Name = weapon.GroupID.ToString(), Font = new Font(Font.Name, Font.Size - 1, FontStyle.Bold | FontStyle.Italic), TextAlign = ContentAlignment.MiddleCenter, Size = new Size(25, button.Size.Height), Location = new Point(0, button.Location.Y), Parent = Parent }; Byte lvl = weapon.AvailabilityLevel; if (lvl > 0 && lvl <= 100) { levelLabel.Text = lvl.ToString(); levelLabel.ForeColor = lvl < 100 ? weapon.Color : Color.Orange; } else if (lvl == 101) { levelLabel.Text = @"M"; levelLabel.ForeColor = Color.GreenYellow; } else if (lvl == 102) { levelLabel.Text = @"C"; levelLabel.ForeColor = Color.LightCoral; } else if (lvl == 103) { levelLabel.Text = @"GS"; levelLabel.ForeColor = Color.DarkGoldenrod; } else { levelLabel.Text = @"U"; levelLabel.ForeColor = Color.DarkGray; } Controls.Add(levelLabel); } #endregion Controls.Add(imageLabel); Controls.Add(button); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TaskView)); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.btnComplete = new TransparentPictureBox(); this.btnRemove = new TransparentPictureBox(); this.btnUp = new TransparentPictureBox(); this.btnDown = new TransparentPictureBox(); this.lblTaskPath = new MindMate.Plugins.Tasks.TransparentLabel(); this.lblDueOn = new MindMate.Plugins.Tasks.TransparentLabel(); this.lblNodeName = new MindMate.Plugins.Tasks.TransparentLabel(); this.SuspendLayout(); // // btnRemove // this.btnRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnRemove.BackColor = System.Drawing.Color.Transparent; this.btnRemove.Image = TaskRes.date_delete; this.btnRemove.Location = new System.Drawing.Point(1221, 3); this.btnRemove.Name = "btnRemove"; this.btnRemove.Size = new System.Drawing.Size(18, 18); this.btnRemove.TabIndex = 3; this.toolTip1.SetToolTip(this.btnRemove, "Remove Task"); // // btnComplete // this.btnComplete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnComplete.BackColor = System.Drawing.Color.Transparent; this.btnComplete.Image = TaskRes.tick; this.btnComplete.Location = new System.Drawing.Point(1200, 3); this.btnComplete.Name = "btnComplete"; this.btnComplete.Size = new System.Drawing.Size(18, 18); this.btnComplete.TabIndex = 4; this.toolTip1.SetToolTip(this.btnComplete, "Complete Task"); // // btnDown // this.btnDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnDown.BackColor = System.Drawing.Color.Transparent; this.btnDown.Image = TaskRes.arrow_270_medium; this.btnDown.Location = new System.Drawing.Point(1179, 3); this.btnDown.Name = "btnDown"; this.btnDown.Size = new System.Drawing.Size(18, 18); this.btnDown.TabIndex = 3; this.toolTip1.SetToolTip(this.btnRemove, "Move Down"); // // btnUp // this.btnUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnUp.BackColor = System.Drawing.Color.Transparent; this.btnUp.Image = TaskRes.arrow_090_medium; this.btnUp.Location = new System.Drawing.Point(1158, 3); this.btnUp.Name = "btnUp"; this.btnUp.Size = new System.Drawing.Size(18, 18); this.btnUp.TabIndex = 3; this.toolTip1.SetToolTip(this.btnRemove, "Move Up"); // // lblTaskPath // this.lblTaskPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblTaskPath.AutoEllipsis = true; this.lblTaskPath.ForeColor = System.Drawing.Color.Gray; this.lblTaskPath.Location = new System.Drawing.Point(7, 22); this.lblTaskPath.Name = "lblTaskPath"; this.lblTaskPath.Size = new System.Drawing.Size(1170, 16); this.lblTaskPath.TabIndex = 2; this.lblTaskPath.Text = "Blogging -> My Tasks -> Important Ones -> My Mind"; // // lblDueOn // this.lblDueOn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblDueOn.ForeColor = System.Drawing.Color.Gray; this.lblDueOn.Location = new System.Drawing.Point(1183, 22); this.lblDueOn.Name = "lblDueOn"; this.lblDueOn.Size = new System.Drawing.Size(57, 16); this.lblDueOn.TabIndex = 1; this.lblDueOn.Text = "12:00 AM"; this.lblDueOn.TextAlign = System.Drawing.ContentAlignment.TopRight; // // lblNodeName // this.lblNodeName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblNodeName.AutoEllipsis = true; this.lblNodeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblNodeName.Location = new System.Drawing.Point(4, 4); this.lblNodeName.Name = "lblNodeName"; this.lblNodeName.Size = new System.Drawing.Size(1235, 23); this.lblNodeName.TabIndex = 0; this.lblNodeName.Text = "Create a new Post on Animal Rights in Islam"; // // TaskView // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.ControlLight; this.Controls.Add(this.btnComplete); this.Controls.Add(this.btnRemove); this.Controls.Add(this.btnDown); this.Controls.Add(this.btnUp); this.Controls.Add(this.lblTaskPath); this.Controls.Add(this.lblDueOn); this.Controls.Add(this.lblNodeName); this.Name = "TaskView"; this.Size = new System.Drawing.Size(1243, 42); this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.TaskView_MouseUp); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.ToolStripSeparator toolStripMenuItem_; this.deleteMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.preferencesMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.contextMenu_ = new System.Windows.Forms.ContextMenuStrip(this.components); this.archiveMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.boldMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.italicMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.underlineMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.strikethroughMenuItem_ = new System.Windows.Forms.ToolStripMenuItem(); this.saveFileDialog_ = new System.Windows.Forms.SaveFileDialog(); this.rollUpLabel_ = new Stickies.Notes.TransparentLabel(); this.textBoxPaddingPanel_ = new Stickies.Notes.TransparentPanel(); this.textBox_ = new Stickies.Notes.NoteTextBox(); toolStripMenuItem_ = new System.Windows.Forms.ToolStripSeparator(); this.contextMenu_.SuspendLayout(); this.textBoxPaddingPanel_.SuspendLayout(); this.SuspendLayout(); // // toolStripMenuItem_ // toolStripMenuItem_.Name = "toolStripMenuItem_"; toolStripMenuItem_.Size = new System.Drawing.Size(185, 6); // // deleteMenuItem_ // this.deleteMenuItem_.Name = "deleteMenuItem_"; this.deleteMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D))); this.deleteMenuItem_.Size = new System.Drawing.Size(188, 22); this.deleteMenuItem_.Text = "&Delete"; this.deleteMenuItem_.Click += new System.EventHandler(this.deleteMenuItem__Click); // // preferencesMenuItem_ // this.preferencesMenuItem.Name = "preferencesMenuItem_"; this.preferencesMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P))); this.preferencesMenuItem.Size = new System.Drawing.Size(188, 22); this.preferencesMenuItem.Text = "&Preferences"; this.preferencesMenuItem.Click += new System.EventHandler(this.preferencesMenuItem__Click); // // contextMenu_ // this.contextMenu_.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.preferencesMenuItem, this.deleteMenuItem_, this.archiveMenuItem_, toolStripMenuItem_, this.boldMenuItem_, this.italicMenuItem_, this.underlineMenuItem_, this.strikethroughMenuItem_}); this.contextMenu_.Name = "contextMenu_"; this.contextMenu_.Size = new System.Drawing.Size(189, 164); // // archiveMenuItem_ // this.archiveMenuItem_.Name = "archiveMenuItem_"; this.archiveMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); this.archiveMenuItem_.Size = new System.Drawing.Size(188, 22); this.archiveMenuItem_.Text = "&Archive"; this.archiveMenuItem_.Click += new System.EventHandler(this.archiveMenuItem__Click); // // boldMenuItem_ // this.boldMenuItem_.Name = "boldMenuItem_"; this.boldMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.B))); this.boldMenuItem_.Size = new System.Drawing.Size(188, 22); this.boldMenuItem_.Text = "&Bold"; this.boldMenuItem_.Click += new System.EventHandler(this.boldMenuItem__Click); // // italicMenuItem_ // this.italicMenuItem_.Name = "italicMenuItem_"; this.italicMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.I))); this.italicMenuItem_.Size = new System.Drawing.Size(188, 22); this.italicMenuItem_.Text = "&Italic"; this.italicMenuItem_.Click += new System.EventHandler(this.italicMenuItem__Click); // // underlineMenuItem_ // this.underlineMenuItem_.Name = "underlineMenuItem_"; this.underlineMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.U))); this.underlineMenuItem_.Size = new System.Drawing.Size(188, 22); this.underlineMenuItem_.Text = "&Underline"; this.underlineMenuItem_.Click += new System.EventHandler(this.underlineMenuItem__Click); // // strikethroughMenuItem_ // this.strikethroughMenuItem_.Name = "strikethroughMenuItem_"; this.strikethroughMenuItem_.ShortcutKeys = ((System.Windows.Forms.Keys) ((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.E))); this.strikethroughMenuItem_.Size = new System.Drawing.Size(188, 22); this.strikethroughMenuItem_.Text = "&Strikethrough"; this.strikethroughMenuItem_.Click += new System.EventHandler(this.strikethroughMenuItem__Click); // // rollUpLabel_ // this.rollUpLabel_.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) (0))); this.rollUpLabel_.Location = new System.Drawing.Point(0, 0); this.rollUpLabel_.Name = "rollUpLabel_"; this.rollUpLabel_.Size = new System.Drawing.Size(153, 12); this.rollUpLabel_.TabIndex = 8; this.rollUpLabel_.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.rollUpLabel_.Visible = false; // // textBoxPaddingPanel_ // this.textBoxPaddingPanel_.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (192)))), ((int) (((byte) (255)))), ((int) (((byte) (192))))); this.textBoxPaddingPanel_.Controls.Add(this.textBox_); this.textBoxPaddingPanel_.Dock = System.Windows.Forms.DockStyle.Fill; this.textBoxPaddingPanel_.Location = new System.Drawing.Point(1, 14); this.textBoxPaddingPanel_.Name = "textBoxPaddingPanel_"; this.textBoxPaddingPanel_.Padding = new System.Windows.Forms.Padding(3); this.textBoxPaddingPanel_.Size = new System.Drawing.Size(158, 135); this.textBoxPaddingPanel_.TabIndex = 9; // // textBox_ // this.textBox_.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (255)))), ((int) (((byte) (255)))), ((int) (((byte) (192))))); this.textBox_.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox_.ContextMenuStrip = this.contextMenu_; this.textBox_.Dock = System.Windows.Forms.DockStyle.Fill; this.textBox_.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte) (0))); this.textBox_.Location = new System.Drawing.Point(3, 3); this.textBox_.Name = "textBox_"; this.textBox_.Size = new System.Drawing.Size(152, 129); this.textBox_.TabIndex = 8; this.textBox_.Text = "This is a test and it is good for some reason multiline is nice"; this.textBox_.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.textBox__LinkClicked); this.textBox_.SelectionChanged += new System.EventHandler(this.textBox__SelectionChanged); this.textBox_.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox__KeyDown); this.textBox_.TextChanged += new System.EventHandler(this.MakeDirty); // // NoteForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int) (((byte) (255)))), ((int) (((byte) (255)))), ((int) (((byte) (128))))); this.ClientSize = new System.Drawing.Size(160, 150); this.ContextMenuStrip = this.contextMenu_; this.Controls.Add(this.textBoxPaddingPanel_); this.Controls.Add(this.rollUpLabel_); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "NoteForm"; this.Padding = new System.Windows.Forms.Padding(1, 14, 1, 1); this.ShowInTaskbar = false; this.Deactivate += new System.EventHandler(this.NoteForm_Deactivate); this.Resize += new System.EventHandler(this.MakeDirty); this.Move += new System.EventHandler(this.MakeDirty); this.BackColorChanged += new System.EventHandler(this.MakeDirty); this.Load += new System.EventHandler(this.NoteForm_Load); this.contextMenu_.ResumeLayout(false); this.textBoxPaddingPanel_.ResumeLayout(false); this.ResumeLayout(false); }
public frmUpdater() { InitializeComponent(); lbl = new TransparentLabel(lblStatus); lbl.ForeColor = Color.White; }