ActiveX is
supported in many containers. Following
containers are some development
platforms I can find which can use
ActiveX in their applications and
support all my OCX.
Microsoft Visual Basic 4.0
Microsoft Visual Basic 5.0
Microsoft Visual Foxpro 3.0 and 5.0
Microsoft Visual Basic for
Application (Word, Excel and
PowerPoint)
Microsoft Access
Borland Delphi 2.0
Microsoft Visual C++ 4.x
Microsoft Visual C++ 5.0
Microsoft Visual Basic 4.0
Start your
Visual Basic 4,0 design environment and
load your project.
-
Choose
menu Tools|Custom Controls... or
press Ctrl+T or right-click the
Toolbox and choose Custom
Controls... in the popup menu.
-
In the
Custom Controls dialog, find which
control you want to use in your
project from the Available Controls
list.
-
Set the
check box before the controls you
want then click the OK in the Custom
Controls dialog.
-
The
icons of the controls you choose are
showed at the end of the Toolbox.
Click the icon to choose a control
and put the control onto the form.
Microsoft Visual Basic 5.0
Start your
Visual Basic 5.0 design environment and
load your project.
-
Choose
menu Project|Components... or press
Ctrl+T or right-click the Toolbox
and choose Components... in the
popup menu.
-
In the
Components dialog, select Controls
tab, find which control you want to
use in your project from the
controls list.
-
Set the
check box before the controls you
want then click the OK in the
Components dialog.
-
The
icons of the controls you choose are
showed at the end of the Toolbox.
Click the icon to choose a control
and put the control onto the form.
Microsoft Visual Foxpro 3.0 and
5.0
Start your
Visual Foxpro
-
Choose
menu Tools|Options...
-
In the
Options dialog, select Controls tab
and select the OLE Controls radio
button and the Controls check box.
-
Find
which control you want to use in
your project from the controls list.
-
Set the
check box before the controls you
want then click OK in the Options
dialog.
-
Start
the form Designer by loading the
existing form or creating a new
form.
-
Click
button on the Form Controls toolbar
and choose OLE Controls from the
popup menu.
-
The
icons of the controls you choose are
showed on the Form Controls toolbar.
Click the icon to choose a control
and put the control onto the form.
Microsoft Visual Basic for Application
(Word, Excel and PowerPoint)
Start your
Office application and load a document
or create a new document
-
Choose
menu Tools|Macro|Visual Basic Editor
or press ALT-F11.
-
The
Microsoft Visual Basic for
Application design interface
appears.
-
Choose
a existing Form or create a new
form. Choose menu Tools|Additional
Controls... or right-click the
Toolbox and choose Additional
Controls... from the popup menu.
-
Find
which control you want to use in
your project from the Available
Controls list.
-
Set the
check box before the controls you
want then click OK in the Additional
Controls dialog.
-
The
icons of the controls you choose are
showed on the Toolbox. Click the
icon to choose a control and put the
control onto the form.
Microsoft Access
Start your
Microsoft Access and load a existing
database or create a new database
-
In the
Database windows, choose Forms tab.
-
Click
New to create a Form or click Design
to design a existing form.
-
In the
Toolbox, click
.
All controls currently installed on
your computer will showed in a popup
menu.
-
Choose
a control you want to use in your
form by clicking the name of the
control in the popup menu.
-
Put the
control onto your form.
Borland Delphi 2.0
Start your
Borland Delphi design environment
-
Choose
menu Component|Install.
-
In the
Install Components dialog box, click
OCX....
-
In the
Import OLE Control dialog box,
choose a control which you want to
use in your application in the
Registered Controls list and click
OK.
-
Click
the OCX tab at the Toolbar. The icon
of the control you choose is showed
on the Toolbar.
-
Click
the icon to choose a control and put
the control on the form.
Microsoft Visual C++ 4.x
Start your
Microsoft Developer Studio with Visual
C++ 4.x installed
If you only
use the OCX in the dialog box
-
Click
the ResourceView tab to choose the
resource edit.
-
Double-click the dialog's name to
edit the dialog
-
Right-click the dialog and choose
Insert OLE Control... from the
pop-up menu.
-
Choose
the Animation GIF Control from the
OLE control list and click OK.
-
Then
put the control on the dialog
If you want
to use the OCX in your project
-
Load
the project
-
Choose
menu Insert|Component...
-
Choose
the OLE Controls tab
-
Choose
the Animation GIF Control and click
Insert
-
Visual
C++ will generate two class CAniGif
and CPicture
-
Then
you can define variable of the type
as CAniGif.
Microsoft Visual C++ 5.0
Start your
Visual Studio 97 with Visual C++ 5.0
installed
If you only
use the OCX in the dialog box
-
Click
the ResourceView tab to choose the
resource edit.
-
Double-click the dialog's name to
edit the dialog
-
Right-click the dialog and choose
Insert ActiveX Control... from the
pop-up menu.
-
Choose
the Animation GIF Control from the
ActiveX control list and click OK.
-
Then
put the control on the dialog
If you want
to use the OCX in your project
-
Load
the project
-
Choose
menu Project|Add To
Project|Components and Controls...
-
Open
the Registered ActiveX Control
gallery
-
Choose
the Animation GIF Control and click
Insert
-
Visual
C++ will generate two class CAniGif
and CPicture
-
Then
you can define variable of the type
as CAniGif.