惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

博客园 - GIS云中飞鹏

ArcGIS Server 9.3 REST基础教程 ArcGIS_系列视频教程::精品大放送 VS2005中删除最近打开的项目和文件的记录 [资源共享]C#+AE构建GIS桌面端应用系统框架-全代码 - GIS云中飞鹏 - 博客园 2008ESRI中国区域用户大会资料已经共享!!!^_^ 刻录机放入光盘,出现函数不正确的解决方法! ArcSDE初级教程下载 ArcIMS HTML Viewer开发经典教程:Customizing the HTML Viewer下载 “全国信息化工程师—GIS应用水平考试”考试复习资料下载! ArcObjects GIS应用开发——基于C#.NET--PDF下载 ArcGIS Unknown Spatial Reference问题解疑(转载) - GIS云中飞鹏 oracle 10g默认用户名、密码解锁 自己定制的SymbolSelectForm效果及VB.NET源码 ArcGIS Engine 怎样给PageLayout替换模板 VS在Debug时检测到Loaderlock的解决办法 - GIS云中飞鹏 - 博客园 【ArcGIS Server 开发系列】Flyingis六大系列讲座精品PDF奉献 公司数据部培训讲义:ArcMap数字化培训教程 如何改变ArcIMS92图例字体大小中? - GIS云中飞鹏 - 博客园 在ArcGisEngine 开发中如何在Toolbar控件上添加Combobox等其他控件?
用AE创建气泡式提示框的方法-VB.Net源码(转载) - GIS云中飞鹏 - 博客园
GIS云中飞鹏 · 2008-08-05 · via 博客园 - GIS云中飞鹏

                                用AE创建气泡式提示框的方法-VB.Net源码
 

 原文地址:http://www.cnblogs.com/wall/archive/2008/07/17/1244942.html

  ''' <summary>

  ''' 创建文本提示框

  ''' </summary>

  ''' <param name="x">提示框标识的位置X坐标</param>

  ''' <param name="y">提示框标识的位置Y坐标</param>

  ''' <param name="pTextString">提示框中显示的文本</param>

  ''' <param name="pPoint">提示框箭头指向的点</param>

  ''' <param name="pGraphicsContainer">包含提示框的graphicscontainer</param>

  ''' <returns></returns>

  ''' <remarks></remarks>

  Public Function
CreateTextElement(ByVal x As Double, ByVal y As Double, ByVal
pTextString As String, Optional ByVal pPoint As IPoint = Nothing,
Optional ByVal pGraphicsContainer As IGraphicsContainer = Nothing) As
IElement

    Dim pElement As IElement = New MarkerElementClass()

    Dim pTElement As IElement = New TextElementClass()

    Dim pTextSymbol As IFormattedTextSymbol = New TextSymbolClass()

    Dim pBalloonCallout As IBalloonCallout = CreateBalloonCallout(x, y)

    Dim pColor As IRgbColor = New RgbColorClass()

    pColor.Red = 150

    pColor.Green = 0

    pColor.Blue = 0

    pTextSymbol.Color = pColor

    Dim pTextBackground As ITextBackground

    pTextBackground = pBalloonCallout

    pTextSymbol.Background = pTextBackground

    pTextSymbol.Size = 8

    CType(pTElement, ITextElement).Symbol = pTextSymbol

    CType(pTElement, ITextElement).Text = pTextString

    If pPoint Is Nothing Then pPoint = New Point : pPoint.PutCoords(x + Const_Dis, y + Const_Dis)

    pTElement.Geometry = pPoint

    pGraphicsContainer.AddElement(pTElement, 1)

    Return pTElement

  End Function


  ''' <summary>

  ''' 创建balloon型提示框

  ''' </summary>

  ''' <param name="x">提示框所在位置X坐标</param>

  ''' <param name="y">提示框所在位置Y坐标</param>

  ''' <returns></returns>

  ''' <remarks></remarks>

  Public Function CreateBalloonCallout(ByVal x As Double, ByVal y As Double) As IBalloonCallout

    Dim pRgbClr As IRgbColor = New RgbColorClass()

    pRgbClr.Red = 255

    pRgbClr.Blue = 255

    pRgbClr.Green = 255

    Dim pSmplFill As ISimpleFillSymbol = New SimpleFillSymbolClass()

    pSmplFill.Color = pRgbClr

    pSmplFill.Style = esriSimpleFillStyle.esriSFSSolid

    Dim pBllnCallout As IBalloonCallout = New BalloonCalloutClass()

    pBllnCallout.Style = esriBalloonCalloutStyle.esriBCSRoundedRectangle

    pBllnCallout.Symbol = pSmplFill

    pBllnCallout.LeaderTolerance = 1

    Dim pPoint As IPoint = New ESRI.ArcGIS.Geometry.PointClass()

    pPoint.X = x

    pPoint.Y = y

    pBllnCallout.AnchorPoint = pPoint

    Return pBllnCallout

  End Function