Prechádzať zdrojové kódy

ComPDFKit(win) - 图章创建完成后显示鼠标,测量相关参数设置

zhuyi 8 mesiacov pred
rodič
commit
5e004ef2ce

+ 1 - 0
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationControl/CPDFAnnotationControl.xaml.cs

@@ -779,6 +779,7 @@ namespace Compdfkit_Tools.PDFControl
         {
             this.pdfViewerControl.SetToolType(ToolType.Pan);
             pdfViewerControl.SetIsShowStampMouse(false);
+            pdfViewerControl.SetIsVisibleCustomMouse(false);
             ClearPanel();
         }
 

+ 3 - 0
Demo/Examples/Compdfkit_Tools/Common/BarControl/CPDFMeasureBarControl.xaml.cs

@@ -5,6 +5,7 @@ using ComPDFKit.Tool;
 using Compdfkit_Tools.Helper;
 using Compdfkit_Tools.Measure;
 using Compdfkit_Tools.Measure.Property;
+using ComPDFKitViewer;
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
@@ -336,6 +337,7 @@ namespace Compdfkit_Tools.PDFControl
 
         private AnnotParam CreatePolygonal()
         {
+            pdfViewer.PDFViewTool.GetDefaultSettingParam().IsCreateSquarePolygonMeasure = false;
             pdfViewer.SetToolType(CPDFToolManager.ToolType.CreateAnnot);
             pdfViewer.SetCreateAnnotType(C_ANNOTATION_TYPE.C_ANNOTATION_POLYGON);
             PolygonMeasureParam polygonMeasureParam = new PolygonMeasureParam();
@@ -383,6 +385,7 @@ namespace Compdfkit_Tools.PDFControl
 
         private AnnotParam CreateRectangles()
         {
+            pdfViewer.PDFViewTool.GetDefaultSettingParam().IsCreateSquarePolygonMeasure = true;
             pdfViewer.SetToolType(CPDFToolManager.ToolType.CreateAnnot);
             pdfViewer.SetCreateAnnotType(C_ANNOTATION_TYPE.C_ANNOTATION_POLYGON);
             PolygonMeasureParam polygonMeasureParam = new PolygonMeasureParam();