From 1f5b19e94597d9ba84fef7de8df822b7d1362d5e Mon Sep 17 00:00:00 2001 From: vczh Date: Mon, 22 Sep 2025 07:23:22 -0700 Subject: [PATCH] ... --- SampleForDoc/GacUI/GacUI.sln | 2 ++ .../GacUI/XmlRes/control_ribbon_gallery/Resource.xml | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SampleForDoc/GacUI/GacUI.sln b/SampleForDoc/GacUI/GacUI.sln index 253040bc..6ca7a691 100644 --- a/SampleForDoc/GacUI/GacUI.sln +++ b/SampleForDoc/GacUI/GacUI.sln @@ -26,9 +26,11 @@ Global {0FAA859A-1B12-4F70-9EA9-31DBBF202595}.Release|x86.ActiveCfg = Release|Win32 {0FAA859A-1B12-4F70-9EA9-31DBBF202595}.Release|x86.Build.0 = Release|Win32 {8018D622-66BA-4E65-9D03-BDAC37EA9A54}.Debug|x64.ActiveCfg = Debug|x64 + {8018D622-66BA-4E65-9D03-BDAC37EA9A54}.Debug|x64.Build.0 = Debug|x64 {8018D622-66BA-4E65-9D03-BDAC37EA9A54}.Debug|x86.ActiveCfg = Debug|Win32 {8018D622-66BA-4E65-9D03-BDAC37EA9A54}.Debug|x86.Build.0 = Debug|Win32 {8018D622-66BA-4E65-9D03-BDAC37EA9A54}.Release|x64.ActiveCfg = Release|x64 + {8018D622-66BA-4E65-9D03-BDAC37EA9A54}.Release|x64.Build.0 = Release|x64 {8018D622-66BA-4E65-9D03-BDAC37EA9A54}.Release|x86.ActiveCfg = Release|Win32 {8018D622-66BA-4E65-9D03-BDAC37EA9A54}.Release|x86.Build.0 = Release|Win32 EndGlobalSection diff --git a/SampleForDoc/GacUI/XmlRes/control_ribbon_gallery/Resource.xml b/SampleForDoc/GacUI/XmlRes/control_ribbon_gallery/Resource.xml index 16710b10..7ba8a09d 100644 --- a/SampleForDoc/GacUI/XmlRes/control_ribbon_gallery/Resource.xml +++ b/SampleForDoc/GacUI/XmlRes/control_ribbon_gallery/Resource.xml @@ -97,10 +97,11 @@ var item = self.colorGroups[pos.group].Items[pos.item]; var log = $"$(name): $(item.IconColor)\r\n"; var rowCount = textLog.Document.paragraphs.GetCount(); - var start : TextPos = {row:rowCount column:0}; + var start : TextPos = {row:rowCount - 1; column:0;}; + var end : TextPos = {row:rowCount; column:0;}; textLog.SetCaret(start, start); textLog.SelectionText = log; - textLog.SetCaret(start, start); + textLog.SetCaret(end, end); } ]]>