19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FIGURE 13-5 Web Page<br />

■ PLACING ACTIVEX CONTROLS IN HTML DOCUMENTS<br />

With Internet Explorer, ActiveX controls, such as text boxes, comm<strong>and</strong> buttons, <strong>and</strong> userbuilt<br />

controls, can be placed on Web pages. For instance, the element<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Web Page <strong>Programming</strong> With VBScript 399<br />

tells Internet Explorer to place a comm<strong>and</strong> button (named cmdPush) on the Web page. The<br />

string beginning with CLSID is the control's identification number in the Windows registry.<br />

The PARAM tags set properties of the control. For instance, the first PARAM tag sets the caption<br />

of the comm<strong>and</strong> button to “Push Me.”<br />

Creating the OBJECT element is so cumbersome that Microsoft has developed a tool,<br />

called the ActiveX Control Pad, that makes placing a control on a Web page nearly as easy<br />

as placing a control on a <strong>Visual</strong> <strong>Basic</strong> form. The ActiveX Control Pad is sometimes included<br />

with Internet Explorer. Also, the ActiveX Control Pad can be downloaded separately from<br />

the Microsoft Web site. (See Comment 7.)<br />

The ActiveX Control Pad is actually a word processor that looks <strong>and</strong> acts much like<br />

Notepad. The following walkthrough uses the ActiveX Control Pad to create a Web page containing<br />

a text box <strong>and</strong> a comm<strong>and</strong> button.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!