コード例 #1
0
ファイル: Utility.cs プロジェクト: zhongketuxin/qkKL6Dgf12
        public static void SetBallons(GSOBalloon featureTooltip, GSOBalloonEx balloonEx)
        {
            featureTooltip.CacheFilePath = Path.GetDirectoryName(Application.ExecutablePath) + "/GeoScene/Globe/Temp";

            featureTooltip.SetSize(EnumSizeIndex.ROUNDED_CX, 0);
            featureTooltip.SetSize(EnumSizeIndex.ROUNDED_CY, 0);
            featureTooltip.SetSize(EnumSizeIndex.MARGIN_CX, 3);
            featureTooltip.SetSize(EnumSizeIndex.MARGIN_CY, 3);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_HEIGHT, 0);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_WIDTH, 0);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_MARGIN, 0);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_OFFSET_CX, 1);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_OFFSET_CY, -1);
            featureTooltip.SetDirection(EnumToolTipDirection.TD_BOTTOMEDGE_LEFT);

            featureTooltip.EscapeSequencesEnabled = true;
            featureTooltip.HyperlinkEnabled       = true;
            featureTooltip.Opaque   = 30;
            featureTooltip.MaxWidth = 300;
            featureTooltip.SetShadow(0, 0, 50, true, 0, 0);

            balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 500);
            balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 300);
            balloonEx.Opaque = 5;
            balloonEx.SetBorder(Color.White, 1, 1);
            balloonEx.SetColorBkType(EnumBkColorTypeEx.SKY);
        }
コード例 #2
0
 /// <summary>
 /// 气泡的参数设置
 /// </summary>
 /// <param name="featureTooltip"></param>
 /// <param name="infoBalloon"></param>
 /// <param name="balloonEx"></param>
 public static void SetBallons(GSOBalloon featureTooltip, GSOBalloon infoBalloon, GSOBalloonEx balloonEx)
 {
     if (featureTooltip != null)
     {
         featureTooltip.CacheFilePath = Application.StartupPath + "/GeoScene/Globe/Temp";
         featureTooltip.SetSize(EnumSizeIndex.ROUNDED_CX, 0);
         featureTooltip.SetSize(EnumSizeIndex.ROUNDED_CY, 0);
         featureTooltip.SetSize(EnumSizeIndex.MARGIN_CX, 3);
         featureTooltip.SetSize(EnumSizeIndex.MARGIN_CY, 3);
         featureTooltip.SetSize(EnumSizeIndex.ANCHOR_HEIGHT, 0);
         featureTooltip.SetSize(EnumSizeIndex.ANCHOR_WIDTH, 0);
         featureTooltip.SetSize(EnumSizeIndex.ANCHOR_MARGIN, 0);
         featureTooltip.SetSize(EnumSizeIndex.ANCHOR_OFFSET_CX, 1);
         featureTooltip.SetSize(EnumSizeIndex.ANCHOR_OFFSET_CY, -1);
         featureTooltip.SetDirection(EnumToolTipDirection.TD_BOTTOMEDGE_LEFT);
         featureTooltip.EscapeSequencesEnabled = true;
         featureTooltip.HyperlinkEnabled       = true;
         featureTooltip.Opaque   = 30;
         featureTooltip.MaxWidth = 300;
         featureTooltip.SetShadow(0, 0, 50, true, 0, 0);
     }
     if (infoBalloon != null)
     {
         infoBalloon.SetColorBkType(EnumBkColorType.SILVER);
         infoBalloon.SetEffectBk(EnumBkEffect.HBUMP, 0);
         infoBalloon.SetBorder(Color.FromArgb(255, 171, 171, 171), 1, 1);
         infoBalloon.SetSize(EnumSizeIndex.ROUNDED_CX, 5);
         infoBalloon.SetSize(EnumSizeIndex.ROUNDED_CY, 5);
         infoBalloon.SetSize(EnumSizeIndex.ANCHOR_HEIGHT, 10);
         infoBalloon.SetSize(EnumSizeIndex.ANCHOR_WIDTH, 10);
         infoBalloon.SetShadow(3, 3, 50, true, 0, 0);
         infoBalloon.MaxWidth           = 300;
         infoBalloon.CloseButtonVisible = true;
     }
     if (balloonEx != null)
     {
         balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 500);
         balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 300);
         balloonEx.SetSize(EnumSizeIndexEx.ANCHOR_WIDTH, 10);
         balloonEx.Opaque = 5;
         balloonEx.SetBorder(Color.White, 1, 1);
         balloonEx.SetColorBkType(EnumBkColorTypeEx.SILVER);
         balloonEx.SetEffectBk(EnumBkEffectEx.OUTRANGE, 10);
         balloonEx.CacheFilePath = Application.StartupPath + "/GeoScene/Globe/Temp";
     }
 }
コード例 #3
0
ファイル: Utility.cs プロジェクト: StarU/qkKL6Dgf12
        public static void SetBallons(GSOBalloon featureTooltip,GSOBalloonEx balloonEx)
        {
            featureTooltip.CacheFilePath = Path.GetDirectoryName(Application.ExecutablePath) + "/GeoScene/Globe/Temp";

            featureTooltip.SetSize(EnumSizeIndex.ROUNDED_CX, 0);
            featureTooltip.SetSize(EnumSizeIndex.ROUNDED_CY, 0);
            featureTooltip.SetSize(EnumSizeIndex.MARGIN_CX, 3);
            featureTooltip.SetSize(EnumSizeIndex.MARGIN_CY, 3);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_HEIGHT, 0);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_WIDTH, 0);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_MARGIN, 0);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_OFFSET_CX, 1);
            featureTooltip.SetSize(EnumSizeIndex.ANCHOR_OFFSET_CY, -1);
            featureTooltip.SetDirection(EnumToolTipDirection.TD_BOTTOMEDGE_LEFT);

            featureTooltip.EscapeSequencesEnabled = true;
            featureTooltip.HyperlinkEnabled = true;
            featureTooltip.Opaque = 30;
            featureTooltip.MaxWidth = 300;
            featureTooltip.SetShadow(0, 0, 50, true, 0, 0);

            balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CX, 500);
            balloonEx.SetSize(EnumSizeIndexEx.CONTENT_CY, 300);
            balloonEx.Opaque = 5;
            balloonEx.SetBorder(Color.White, 1, 1);
            balloonEx.SetColorBkType(EnumBkColorTypeEx.SKY);
        }