From 25fda3c40032d0ad2ab567092d7419ee9490b796 Mon Sep 17 00:00:00 2001 From: Alex Warren Date: Fri, 27 Dec 2024 17:10:51 +0000 Subject: [PATCH] Tweak list editor layout --- EditorControls/WFListEditor.Designer.cs | 20 +++++----- EditorControls/WFListEditor.resx | 49 ++++++++++++------------- Quest/Main.vb | 2 + 3 files changed, 35 insertions(+), 36 deletions(-) diff --git a/EditorControls/WFListEditor.Designer.cs b/EditorControls/WFListEditor.Designer.cs index 2ebafe519..d3fd19f35 100644 --- a/EditorControls/WFListEditor.Designer.cs +++ b/EditorControls/WFListEditor.Designer.cs @@ -34,9 +34,9 @@ private void InitializeComponent() this.cmdAdd = new System.Windows.Forms.ToolStripButton(); this.cmdAddNewPage = new System.Windows.Forms.ToolStripButton(); this.cmdDelete = new System.Windows.Forms.ToolStripButton(); - this.cmdLink = new System.Windows.Forms.ToolStripButton(); this.cmdEditKey = new System.Windows.Forms.ToolStripButton(); this.cmdEdit = new System.Windows.Forms.ToolStripButton(); + this.cmdLink = new System.Windows.Forms.ToolStripButton(); this.cmdGoToPage = new System.Windows.Forms.ToolStripButton(); this.cmdMoveUp = new System.Windows.Forms.ToolStripButton(); this.cmdMoveDown = new System.Windows.Forms.ToolStripButton(); @@ -58,7 +58,7 @@ private void InitializeComponent() // this.ctlToolStrip.BackColor = System.Drawing.Color.White; this.ctlToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; - this.ctlToolStrip.ImageScalingSize = new System.Drawing.Size(20, 20); + this.ctlToolStrip.ImageScalingSize = new System.Drawing.Size(32, 32); this.ctlToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cmdAdd, this.cmdAddNewPage, @@ -94,14 +94,6 @@ private void InitializeComponent() resources.ApplyResources(this.cmdDelete, "cmdDelete"); this.cmdDelete.Name = "cmdDelete"; // - // cmdLink - // - this.cmdLink.AutoToolTip = false; - this.cmdLink.Image = global::TextAdventures.Quest.EditorControls.Properties.Resources.s_wf_link; - resources.ApplyResources(this.cmdLink, "cmdLink"); - this.cmdLink.Name = "cmdLink"; - this.cmdLink.Tag = "link"; - // // cmdEditKey // this.cmdEditKey.AutoToolTip = false; @@ -116,6 +108,14 @@ private void InitializeComponent() resources.ApplyResources(this.cmdEdit, "cmdEdit"); this.cmdEdit.Name = "cmdEdit"; // + // cmdLink + // + this.cmdLink.AutoToolTip = false; + this.cmdLink.Image = global::TextAdventures.Quest.EditorControls.Properties.Resources.s_wf_link; + resources.ApplyResources(this.cmdLink, "cmdLink"); + this.cmdLink.Name = "cmdLink"; + this.cmdLink.Tag = "link"; + // // cmdGoToPage // this.cmdGoToPage.AutoToolTip = false; diff --git a/EditorControls/WFListEditor.resx b/EditorControls/WFListEditor.resx index f2f36a15d..c86c2789b 100644 --- a/EditorControls/WFListEditor.resx +++ b/EditorControls/WFListEditor.resx @@ -122,14 +122,14 @@ Fill - - 0, 25 + + Microsoft Sans Serif, 7.875pt - - 4, 4, 4, 4 + + 0, 50 - 1076, 310 + 807, 222 @@ -157,7 +157,7 @@ Magenta - 23, 22 + 46, 44 Add @@ -169,7 +169,7 @@ Magenta - 23, 22 + 46, 44 Add New Page @@ -181,7 +181,7 @@ Magenta - 23, 22 + 46, 44 Delete @@ -193,7 +193,7 @@ Magenta - 23, 22 + 46, 44 Edit Key @@ -205,7 +205,7 @@ Magenta - 23, 22 + 46, 44 Edit @@ -217,7 +217,7 @@ Magenta - 23, 22 + 46, 44 Link to Existing Page @@ -229,7 +229,7 @@ Magenta - 23, 22 + 46, 44 Go to Page @@ -241,7 +241,7 @@ Magenta - 23, 22 + 46, 44 Move Up @@ -253,7 +253,7 @@ Magenta - 23, 22 + 46, 44 Move Down @@ -265,7 +265,7 @@ 0, 0, 0, 0 - 1076, 25 + 807, 50 4 @@ -289,13 +289,10 @@ True - 8, 16 - - - 4, 4, 4, 4 + 6, 13 - 1076, 335 + 807, 272 cmdAdd @@ -315,12 +312,6 @@ System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - cmdLink - - - System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - cmdEditKey @@ -333,6 +324,12 @@ System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + cmdLink + + + System.Windows.Forms.ToolStripButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + cmdGoToPage diff --git a/Quest/Main.vb b/Quest/Main.vb index db7fd7c0f..019bf8494 100644 --- a/Quest/Main.vb +++ b/Quest/Main.vb @@ -12,6 +12,8 @@ Public Class Main Private m_language As String Public Sub New() + Application.EnableVisualStyles() + LoadLanguage() ' This call is required by the Windows Form Designer.