diff --git a/EntryTemplateManager.ChildViewer.cs b/EntryTemplateManager.ChildViewer.cs index 95fec91..44ee055 100644 --- a/EntryTemplateManager.ChildViewer.cs +++ b/EntryTemplateManager.ChildViewer.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; @@ -160,6 +160,14 @@ public static Dictionary get_template_title_to_field_dict(IPlugi } return ret; } + + //private int ScaleX(int i) { + // return DpiUtil.ScaleIntX(i); + //} + //private int ScaleY(int i) { + // return DpiUtil.ScaleIntY(i); + //} + private bool InitializeChildView(TabPage page, String uuid) { if (et_to_label != null) { add_child_items_to_tab(page); @@ -187,11 +195,13 @@ private bool InitializeChildView(TabPage page, String uuid) { int CONTROL_WIDTH = TAB_WIDTH - LABEL_WIDTH - 55; foreach (EntryTemplate t in cur) { Label label = new Label(); + label.Text = t.title + ":"; + //label.AutoSize = false; label.Top = control_offset_y; label.Left = 0; - label.Text = t.title + ":"; label.AutoSize = false; label.Width = LABEL_WIDTH; + label.AutoEllipsis = true; label.TextAlign = ContentAlignment.MiddleRight; FontUtil.AssignDefaultBold(label); diff --git a/KPEntryTemplates.csproj b/KPEntryTemplates.csproj index f0de2e4..9fcaea7 100644 --- a/KPEntryTemplates.csproj +++ b/KPEntryTemplates.csproj @@ -35,6 +35,7 @@ prompt 4 AnyCPU + false pdbonly @@ -43,9 +44,11 @@ TRACE prompt 4 + false + False ..\..\save\keepass_bin\KeePass.exe False @@ -105,11 +108,11 @@ - \ No newline at end of file