Add NavContainer splitter distance record

Fix not redrawing when Nav list size changed
This commit is contained in:
2023-05-07 15:27:30 +08:00
parent b8cfaf308d
commit 46b8ca0b63
6 changed files with 309 additions and 279 deletions

View File

@@ -53,24 +53,23 @@ namespace GrasscutterTools.Forms
//
// NavContainer.Panel1
//
resources.ApplyResources(this.NavContainer.Panel1, "NavContainer.Panel1");
this.NavContainer.Panel1.Controls.Add(this.ListPages);
//
// NavContainer.Panel2
//
resources.ApplyResources(this.NavContainer.Panel2, "NavContainer.Panel2");
this.NavContainer.Panel2.Controls.Add(this.TCMain);
//
// ListPages
//
resources.ApplyResources(this.ListPages, "ListPages");
this.ListPages.BackColor = System.Drawing.Color.WhiteSmoke;
this.ListPages.BorderStyle = System.Windows.Forms.BorderStyle.None;
resources.ApplyResources(this.ListPages, "ListPages");
this.ListPages.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.ListPages.FormattingEnabled = true;
this.ListPages.Name = "ListPages";
this.ListPages.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.ListPages_DrawItem);
this.ListPages.SelectedIndexChanged += new System.EventHandler(this.ListPages_SelectedIndexChanged);
this.ListPages.SizeChanged += new System.EventHandler(this.ListPages_SizeChanged);
//
// TCMain
//
@@ -120,8 +119,8 @@ namespace GrasscutterTools.Forms
//
// MenuSpawnEntityFilter
//
resources.ApplyResources(this.MenuSpawnEntityFilter, "MenuSpawnEntityFilter");
this.MenuSpawnEntityFilter.Name = "MenuSpawnEntityFilter";
resources.ApplyResources(this.MenuSpawnEntityFilter, "MenuSpawnEntityFilter");
//
// FormMain
//