Download Questionnaire Files

Transcript
Custom Items
Creating Custom Item Types for MediaLab
Overview
As of MediaLab v2004, you can create custom questionnaire items for use with
MediaLab. Using Visual Basic, Visual C++ or other development platform, you can use
the MediaLab ActiveX control to create just about any feature you can dream up. Your
custom item can have any kind of interactive interface that you can program and can
collect and save as much data as you like—and—have that data integrated with the rest
of your MediaLab data.
Requirements
This is not entirely intuitive stuff. If you have never done any programming, then you
might consider saving yourself and your sanity by returning after learning some
programming fundamentals. If you can make it through a standard “Learn Visual Basic
in 21 Days” sort of introduction then you’ll do just fine here.
Note that to create custom item types you will need a development platform capable of
compiling executable (exe) programs using embedded ActiveX (ocx) controls. Examples
of this are Microsoft’s Visual Basic and Visual C++. The examples that accompany
MediaLab were written in Visual Basic but could easily be adapted to Visual C++.
Once you have created your custom item type, you will compile it into a single .exe file.
If you design an item that depends on other external files then you will need to distribute
those files along with the final exe to any machines which will be using your custom item.
The exceptions to this are the standard VB and VC++ runtimes (from Visual Studio 6)
which are installed automatically with MediaLab.
Finally, in order to create a custom item, you can simply modify one of the samples (see
below) or you can start from scratch. Either way, we suggest you contact us for the
latest version of our custom control guide “Making Custom Items for MediaLab.” We are
making this an independent guide as we expect to be updating it throughout the 2004
release.
The Samples
To look at some examples of what a custom control might do, take a look at the
Condition 1 of the following sample and at the source code provided in the same folder:
C:\MediaLab\Samples\Sample6 custom items\custom.exp
Step by Step
Contact [email protected] for a copy of the latest comprehensive guide for
developing custom items.
102