STK和c语言集成开发,STKX组件实现c#与stk的集成.pdf

这篇教程介绍了如何在C#中利用STKX组件创建一个容器应用,集成STK功能。包括在Visual Studio中创建项目,将STKX控件添加到工具箱,发送命令给STKX,实现地图缩放,响应STKX事件,添加地图选择功能以及设置STKX属性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

STKX组件实现c#与stk的集成

STK X Tutorial – C# 1

STK X Tutorial - C#

In this exercise you will gain hands-on experience using STK X to embed STK

functionality in a container application created with C#.

NOTE: Except where otherwise noted, the instructions in this tutorial are

applicable whether you are using Visual Studio 2005 or Visual Studio.NET

(2003). All pictures are of the Visual Studio 2005 interface.

CONTENTS

CREATE THE PROJECT.............................................................................................1

ADD THE STK X CONTROLS TO THE TOOLBOX............................................................1

SEND COMMANDS TO STK X ....................................................................................2

ADD ZOOM IN/OUT TO THE MAP CONTROL ................................................................4

RESPOND TO EVENTS RAISED BY STK X....................................................................5

ADD MAP PICKING..................................................................................................8

SET STK X PROPERTIES ..........................................................................................9

Create the project

1) Start Visual Studio.

2) From the File menu, select New, and then Project….

3) Select Visual C# as the Project type and the Windows Application template. Enter a

project name and location of your choice.

4) The Form1.cs windows form is opened in Design mode.

Add the STK X controls to the Toolbox

1) If the Toolbox is not already displayed, select it from the View menu.

2) Go to the General section of the toolbox, and right-click in the toolbox background.

3) In the context menu, select Choose Items… (or Add/Remove Items… if you are

using Visual Studio.NET 2003).

4) In the Choose Toolbox Items dialog (Customize Toolbox in Visual Studio.NET

2003), select the COM Components tab.

5) Check AGI Globe Control 8 and AGI Map Control 8 in the list of controls, and click

OK to close the dialog.

6) T

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值