亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ch15.htm

?? 用vc開發activex
?? HTM
?? 第 1 頁 / 共 4 頁
字號:
you to easily add controls and create VBScript and JavaScript scripts. It also integrates
a WSIWYG design area for authoring 2-D layouts in conjunction with Microsoft's HTML
Layout Control.</P>
<P>When you first bring up Control Pad, it creates an initial blank HTML document
and opens the document in the Text Editor (see fig. 15.8). <B><BR>
<BR>
</B><A HREF="Art/15/15fig08.jpg"><B>FIG. 15.8</B></A> <BR>
<I>When you first bring up Control Pad, it creates a blank HTML document.</I></P>
<P>To insert an ActiveX Control, select <U>E</U>dit, <U>I</U>nsert ActiveX Control,
which opens the Insert ActiveX Control dialog. This dialog displays a list of all
registered ActiveX controls. Select the control you want to insert from the <U>C</U>ontrol
Type list box on the Insert ActiveX Control dialog, and click the OK button. A form
displaying the control appears along with a Properties grid. Use the mouse to size
the control. <BR>
<BR>
<IMG SRC="bar.gif" WIDTH="480" HEIGHT="6" ALIGN="BOTTOM" BORDER="0"></P>


<BLOCKQUOTE>
	<P><B>NOTE:</B> Version 1.0 of the ActiveX Control Pad has some bugs in its refreshing
	functionality. Once in a while, items appear to smear when you are sizing or positioning
	them, but they aren't. Once you close the editor in use and open it again, things
	are back to normal.

</BLOCKQUOTE>

<P><IMG SRC="bar.gif" WIDTH="480" HEIGHT="6" ALIGN="BOTTOM" BORDER="0"><BR>
<BR>
Set the initial values of the properties using the Properties grid. Select the property
you want to change, and then enter the new value at the top of the Properties grid.
After you have entered the new value, click the <U>A</U>pply button to save the setting.
When you exit the form, the necessary HTML is generated and added at the current
cursor position. Figure 15.9 is an example of HTML code generated with the ActiveX
Control Pad. <B><BR>
<BR>
</B><A HREF="Art/15/15fig09.jpg"><B>FIG. 15.9</B></A> <I><BR>
HTML is generated for the added control.</I></P>
<P>This method of inserting an ActiveX control works fine if you don't care where
the control or controls are placed, but if you want the control(s) at specific X
and Y coordinates, you need to use an HTML layout because HTML currently cannot recognize
X, Y, and Z order positioning. HTML layouts allow exact positioning of controls on
a Web page. The ActiveX Control Pad saves the HTML layout in a file with an ALX extension.
When a browser reads the HTML that contains an HTML layout, it loads the HTML layout
from the ALX file. Control Pad provides the HTML Layout Control for creating and
editing these layouts. The HTML Layout Control gives the developer a forms-based
Web page development environment similar to the Visual Basic interface.</P>
<P>To create an HTML layout, select <U>F</U>ile, N<U>e</U>w HTML Layout to open the
HTML Layout Editor. You can click and drag any of the default controls on the Standard
or Additional tabs onto the form. To set the properties, select <U>V</U>iew, <U>P</U>roperties
to display the Properties grid.</P>
<P>To add your ActiveX control, click the right mouse on the bottom of the tab in
the Toolbox where you want the control to reside, and select Additional Controls
to bring up the Additional Controls dialog (see fig. 15.10). <B><BR>
<BR>
</B><A HREF="Art/15/15fig10.jpg"><B>FIG. 15.10</B></A> <I><BR>
The additional Controls dialog lists all registered ActiveX controls.</I></P>
<P>Select the control you want to add by clicking the check box next to its name
in the <U>A</U>vailable Controls list box. Click the OK button to add the control
to the tab, and close the Custom Controls dialog. Now you can use that control as
if it were part of Control Pad.</P>
<P>After you have your controls set up, close the form and save the changes. This
course returns you to the HTML Source Editor. Now that you have created the layout,
you need to add it to the HTML. Click an insertion point anywhere inside the <TT>&lt;BODY&gt;</TT>
tags, and then select <U>E</U>dit, I<U>n</U>sert HTML Layout. Select the layout you
want to insert, and then click the OK button. The needed HTML will be generated and
placed at the cursor.</P>
<P>The Control Pad is also helpful for creating scripts. Before creating a script,
make sure you set the Script Language for the page. Select <U>T</U>ools, <U>O</U>ptions,
<U>S</U>cript to bring up the Script Options dialog. Select the scripting language
you prefer, and then click the OK key to save your selection.</P>
<P>To create the script, open the Script Wizard by selecting <U>T</U>ools, Script
<U>W</U>izard. Scripts can be created using the <U>L</U>ist View or the Co<U>d</U>e
View. <U>L</U>ist View allows you to insert actions while Co<U>d</U>e View is more
of a code editor. To create a line of code, select an event from the Select an <U>E</U>vent
list box. This selection determines which event the script is being created for.
After the event is selected, select an action, and double-click it to insert it into
the script. If you are in <U>L</U>ist View, you will be prompted to enter any needed
parameters for the selected action. If you are in Co<U>d</U>e View, a skeleton of
the needed command will appear in the Script Pane; you will need to edit the necessary
pieces. You can also add code in the Script Pane.</P>
<P>When you are finished creating the necessary scripts, click the <U>O</U>K key
to add the scripts to the HTML code.</P>
<P>For more information on Control Pad, refer to Control Pad's help files and the
Author/Editing section of Microsoft's Web site.
<H3><A NAME="Heading10"></A>Using the Microsoft Access, Word, and Excel Applications
as ActiveX Control Containers</H3>
<P>When you design a control, you probably think, &quot;It has to work in Microsoft
Visual C++, Microsoft Visual Basic, and on the Internet.&quot; What about Office
products? For example, what if someone wants to use a fancy list box control you've
created in a Microsoft Word Document to list the sections of a long document, allowing
the users to pick the section they want to jump to. Microsoft Office 97 makes it
easy to use an ActiveX control in an Office application, even in Microsoft Word.
ActiveX controls can be a very useful addition to Microsoft Office 97, especially
in Microsoft Access, Microsoft Word, and Microsoft Excel.</P>
<P>So how do you add controls to these products? The Microsoft Access menu choices
are a little different than Microsoft Word and Microsoft Excel, but the concepts
are the same. Basically, you choose More Controls from the Controls Toolbox, select
your control from the list, set the properties, and add code to the events.</P>
<P>To add a control to a Microsoft Access form, follow these steps:

<OL>
	<LI>To open or create a new form, click the Forms tab of the Database window, which
	appears when you first open an existing database or create a new one. To create a
	new form, click the <U>N</U>ew button. This action opens the New Form dialog. Select
	Design View from the list box, and click the OK button. To select an existing form,
	select the form from the list of forms on the forms tab of the Database window, and
	then click the <U>D</U>esign button on the Forms tab. This action opens the form
	in Design View.
	<P>
	<LI>If the Toolbox is not visible, select <U>V</U>iew, T<U>o</U>olbox from the Access
	menu to display it (see fig. 15.11).
	<P><A HREF="Art/15/15fig11.jpg"><B>FIG. 15.11</B></A> <I><BR>
	Note the More Controls icon at the bottom of the Toolbox.</I></P>
	<LI>Select the More Controls icon from the Toolbox. This displays a list of registered
	controls.
	<P>
	<LI>If your control does not appear, it probably was not registered. To register
	it, select <U>T</U>ools, ActiveX <U>C</U>ontrols from the Microsoft Access main menu,
	which displays the ActiveX Controls dialog. Click the <U>R</U>egister button, and
	select your control's path from the Add ActiveX Control dialog. Then click the Open
	button to register it.
	<P>
	<LI>Select the control you want to add, and then click on the form where you want
	the control to appear.
</OL>

<P>To add a control to a Microsoft Word document or a Microsoft Excel spreadsheet,
follow these steps:

<OL>
	<LI>Open an existing document or spreadsheet, or use the one opened when you enter.
	To create a new document or spreadsheet, click <U>F</U>ile, <U>N</U>ew to open the
	New dialog. Click the OK button to use the defaults.
	<P>
	<LI>If the Control Toolbox is not visible, select <U>V</U>iew, <U>T</U>oolbars, Control
	Toolbox from the main menu to display it.
	<P>
	<LI>Select the More Controls icon from the Control Toolbox. This displays a list
	of registered controls (see fig. 15.12).
	<P><A HREF="Art/15/15fig12.jpg"><B>FIG. 15.12</B></A> <I><BR>
	Select the More Controls icon to display a list of registered controls.</I></P>
	<LI>If you need to register your control, select the last item in the list, Register
	Custom Control, to display the Register Custom Control dialog. Select your control's
	path from the Register Custom Control dialog, and then click the <U>O</U>pen button
	to register the control.
	<P>
	<LI>Select the control you want to add. Microsoft Word places the control at the
	cursor position. To place the control on a Microsoft Excel spreadsheet, click on
	the spreadsheet where you want the control to appear.
</OL>

<P>Next you need to set the properties for the control. Make sure you are in Design
Mode. Design Mode can be toggled using the View icon on the Form View toolbar in
Microsoft Access (see fig. 15.13) and the Design Mode icon on the Control Toolbox
in Microsoft Word and Microsoft Excel (see fig. 15.14). To set the control's properties,
click with the right mouse on the control, and select <U>P</U>roperties from the
pop-up menu to display the Properties grid. Edit the properties as needed. You can
click with the right mouse on the control and select <I>xxxx </I>Control <U>O</U>bject,
<U>P</U>roperties to use the property pages to edit the properties; <I>xxxx </I>represents
the control name. <B><BR>
<BR>
</B><A HREF="Art/15/15fig13.jpg"><B>FIG. 15.13</B></A> <BR>
<I>Toggle Design Mode in Microsoft Access using the View icon on the Form View Toolbar.</I></P>
<P><A HREF="Art/15/15fig14.jpg"><B>FIG. 15.14</B></A> <BR>
<I>Toggle Design Mode in Microsoft Word and Microsoft Excel using the Design Mode
icon on the Control Toolbox.</I></P>
<P>To create code for events, make sure you are in Design mode. Right-click the control,
and select Build <U>E</U>vent in Microsoft Access, or <U>V</U>iew Code in Microsoft
Word and Microsoft Excel to open the code window. The code window for Microsoft Excel
is shown in Figure 15.15. <B><BR>
<BR>
</B><A HREF="Art/15/15fig15.jpg"><B>FIG. 15.15</B></A> <BR>
<I>The code window for Microsoft Word looks the same as the code window for Microsoft
Excel.</I></P>
<P>You can now code as you would in a Visual Basic code window. To debug your code,
press the F5 key or use the Debug menu.</P>
<P>You can also add an ActiveX control to a report the same way you add it to a form.</P>
<P>For more detailed information, refer to the Microsoft Office 97 Help files and
Microsoft's Knowledge Base found on its Web site (<A HREF="http://www.microsoft.com/kb/"><B>http://www.microsoft.com/kb/</B></A>).</P>
<P>If you compile the project, be sure to recompile if you change the code for your
ActiveX control.
<H2><A NAME="Heading11"></A>Tools for Testing Your Component</H2>
<P>To ensure that your ActiveX control works correctly once in the user's hands,
it needs to be thoroughly tested. Thorough testing involves completely testing every
event, method, and property. The control must also be tested on every platform and,
to the extent possible, with as many of the container applications used by your users
as possible. This part of the chapter discusses using the OLE Control Test Container
packaged with Microsoft Visual C++, your users, and automated testing tools to test
your ActiveX control. You can also use the tools mentioned earlier in the chapter.
<H3><A NAME="Heading12"></A>Visual C++ ActiveX Control Test Container</H3>
<P>The ActiveX Control Test Container can be used to test the properties, methods,
and events functionality of ActiveX controls. You can test the persistence of controls
by saving properties to a stream or substorage, reloading properties, and viewing
the stored stream data. The ActiveX Control Test Container can be integrated with
the Visual C++ debugger, allowing you to step through the control's code.</P>
<P>After you compile and link your control, you can use the Test Container to change
properties, invoke methods, and fire events to test the control. Select <U>T</U>ools,
ActiveX Control Test Container from the Developer Studio menu to load the Test Container.</P>
<P>The first step is to insert your control into the ActiveX Control Test Container.
Select <U>E</U>dit, <U>I</U>nsert OLE Control. This displays the Insert OLE Control
window (see fig. 15.16). Select your control from the <U>O</U>bject Type list box,
and then click the OK button to insert your control. <B><BR>
<BR>
</B><A HREF="Art/15/15fig16.jpg"><B>FIG. 15.16</B></A> <I><BR>
The Insert OLE Control window displays all registered ActiveX controls in the </I><CITE>O</CITE><I>bject
Type list box.</I></P>
<P>If your control is not in the list box, it probably was not registered. Click
the Cancel button to close the Insert OLE Control window, and then use the following
steps to register your control:

<OL>
	<LI>Select <U>F</U>ile, Re_gister Controls to open the Controls Registry window.
	<P>
	<LI>Click the <U>R</U>egister button. Use the Register Controls window to locate
	your control.
	<P>
	<LI>Select your control, and click the <U>O</U>pen button to register the control.
	<P>
	<LI>Click the <U>C</U>lose button to close the Controls Registry window and return
	to the main window.
</OL>

<P>Now that the control is inserted, you can test the property, event, and method
functionality of your control.</P>
<P>You can test changing a property through its property sheets or property dialog.
To change a property via its property sheet, use the following steps:

<OL>
	<LI>Click the control you inserted in the main window of Test Container to select
	the control.
	<P>
	<LI>Select <U>E</U>dit, Properties... <I>xxx</I> Control <U>O</U>bject, where <I>xxx</I>
	is the name of the control. This step displays the control's property page.
	<P>
	<LI>Edit the value of the property.
	<P>
	<LI>Click the <U>A</U>pply button to set the property to the new value.
	<P>
	<LI>Click the OK button to close the control's property page.
</OL>

<P>To change a property via its property dialog follow these steps:

<OL>
	<LI>Click the control you inserted in the main window of Test Container to select
	the control.
	<LI>Select <U>V</U>iew, <U>P</U>roperties to show the Properties dialog for the control
	(see fig. 15.17).
	<P><A HREF="Art/15/15fig17.jpg"><B>FIG. 15.17</B></A> <BR>
	<I>All of the control's properties may be changed using the Properties dialog.</I></P>
	<LI>Select a property from the <U>P</U>roperty combo box. Edit the value in the <U>V</U>alue
	text box.
	<P>
	<LI>Click the <U>A</U>pply button to set the property to the value. If you enter
	a value that is the wrong data type, you will hear a beep, and the value will not
	be changed.
	<P>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品tushy高清| 精品一区二区精品| 色综合久久久久久久久| 亚洲同性gay激情无套| 色综合天天综合色综合av| 一区二区三区久久久| 精品视频免费在线| 蜜乳av一区二区| 久久精品一区二区三区不卡| 国产成人免费av在线| 亚洲激情第一区| 911国产精品| 国产高清久久久久| 亚洲视频中文字幕| 欧美男生操女生| 久久国产精品72免费观看| 国产精品色噜噜| 欧洲精品在线观看| 久久av中文字幕片| 国产精品家庭影院| 欧美精品在线一区二区| 精品一区二区三区香蕉蜜桃| 国产日产欧美一区二区三区| 91看片淫黄大片一级在线观看| 婷婷久久综合九色综合伊人色| 精品奇米国产一区二区三区| 成人av集中营| 视频一区视频二区中文字幕| 久久九九国产精品| 欧美日韩不卡在线| 国产成都精品91一区二区三| 亚洲午夜日本在线观看| 久久久久久久网| 在线国产电影不卡| 国产福利一区二区三区视频在线 | 经典三级一区二区| 国产精品久久久久一区二区三区共| 欧美性三三影院| 国产不卡高清在线观看视频| 亚洲第四色夜色| 日本一区二区三区免费乱视频| 欧美日韩亚洲综合在线| 成人午夜免费av| 久久精品国内一区二区三区| 亚洲欧美精品午睡沙发| 2021久久国产精品不只是精品| 色狠狠一区二区三区香蕉| 国产一区二区三区蝌蚪| 亚洲午夜一区二区三区| 中文在线一区二区| 日韩精品一区二区三区视频| 欧洲另类一二三四区| 成人精品免费网站| 精品一区二区精品| 免费高清在线视频一区·| 伊人色综合久久天天人手人婷| 国产亚洲一区字幕| 欧美一级夜夜爽| 欧美午夜宅男影院| 色综合色狠狠天天综合色| 国产精品影视网| 极品少妇xxxx偷拍精品少妇| 视频一区二区不卡| 亚洲国产va精品久久久不卡综合| 国产精品国产a| 国产欧美日韩视频一区二区| 欧美tickling挠脚心丨vk| 欧美日韩免费不卡视频一区二区三区| 成人av在线观| 成人国产亚洲欧美成人综合网| 国产乱子伦一区二区三区国色天香 | 亚洲一区二区视频| 有码一区二区三区| 亚洲激情图片qvod| 亚洲综合自拍偷拍| 亚洲精品久久7777| 尤物av一区二区| 亚洲一区在线观看免费观看电影高清| 亚洲精选一二三| 亚洲乱码一区二区三区在线观看| 中文字幕亚洲一区二区av在线| 日本一区二区成人在线| 欧美激情一区在线| 国产精品电影一区二区三区| 国产精品福利一区| 亚洲综合成人网| 亚洲mv在线观看| 午夜不卡av在线| 蜜桃视频第一区免费观看| 免费观看91视频大全| 国内精品写真在线观看| 国产一区二区三区av电影| 丰满岳乱妇一区二区三区| 国产激情视频一区二区在线观看 | 91香蕉视频污在线| 91电影在线观看| 欧美日韩情趣电影| 日韩欧美国产综合| 国产区在线观看成人精品| 成人免费一区二区三区视频 | 日韩国产在线观看| 蜜桃av一区二区| 高清av一区二区| 在线观看不卡视频| 精品欧美乱码久久久久久1区2区| 久久精品人人做人人综合| 亚洲欧洲国产日韩| 天天做天天摸天天爽国产一区| 日韩二区三区在线观看| 国产剧情在线观看一区二区| 波多野结衣亚洲一区| 欧美日韩一区二区三区在线| 日韩欧美一二三四区| 国产精品人成在线观看免费| 亚洲国产乱码最新视频 | 午夜av一区二区三区| 国产一二精品视频| 日本乱人伦一区| 精品sm在线观看| 亚洲国产成人在线| 亚洲二区在线观看| 福利一区二区在线观看| 欧美私模裸体表演在线观看| 2020国产精品久久精品美国| 一区二区三区免费看视频| 狠狠色丁香九九婷婷综合五月| 91美女蜜桃在线| 精品国产在天天线2019| 亚洲一区二区三区视频在线播放 | 亚洲欧美在线视频观看| 青青草原综合久久大伊人精品| 国产精品99久久久久久久女警| 在线看日韩精品电影| 欧美国产精品一区二区| 日韩电影在线一区| 日本韩国欧美一区二区三区| 国产日韩欧美一区二区三区乱码| 午夜影院久久久| 91小视频在线| 中文子幕无线码一区tr| 国产综合色产在线精品| 精品婷婷伊人一区三区三| 国产精品久久久久一区二区三区| 免费观看久久久4p| 欧美久久免费观看| 亚洲综合偷拍欧美一区色| 国产91丝袜在线18| 久久久久久免费网| 久久精品99国产国产精| 欧美日韩国产不卡| 亚洲综合区在线| 99久久国产综合精品麻豆| 久久综合久久99| 久久国产麻豆精品| 日韩一区二区三区视频在线观看| 亚洲一区二区三区四区五区中文| 不卡电影一区二区三区| 日本一区二区三区四区| 国产精品一卡二卡在线观看| 欧美一区二区在线免费观看| 亚洲国产精品尤物yw在线观看| 99久久er热在这里只有精品15 | 欧美一级xxx| 丝袜脚交一区二区| 欧美精选一区二区| 五月天视频一区| 欧美久久久久中文字幕| 日韩黄色小视频| 日韩午夜小视频| 美女诱惑一区二区| 欧美大片免费久久精品三p| 日韩av电影天堂| 欧美成人三级电影在线| 美女视频网站久久| 26uuu久久综合| 国产一区二区三区四区五区美女| 2024国产精品视频| 国产成人在线视频播放| 中文天堂在线一区| 色婷婷激情久久| 午夜精品福利一区二区三区蜜桃| 欧美在线999| 日本中文字幕一区二区有限公司| 538在线一区二区精品国产| 奇米精品一区二区三区在线观看一 | 一本久久a久久精品亚洲| 亚洲蜜臀av乱码久久精品| 欧美日韩一区二区电影| 日韩av成人高清| 久久久综合精品| 成人国产精品免费网站| 亚洲柠檬福利资源导航| 欧美精品日韩精品| 精品亚洲成av人在线观看| 国产三级精品三级| 欧美视频在线不卡| 黑人精品欧美一区二区蜜桃| 国产精品夫妻自拍| 91精品久久久久久蜜臀| 国产成人综合精品三级|