Setting Up Properties - Agilent Technologies Velocity11 VSpin User Manual

Microplate centrifuge
Table of Contents

Advertisement

Setting Up Properties

Overview
ControlPicture
Properties are variables whose values can be set or retrieved by the
container application.
Description
Retrieves a picture of the VSpin bitmap that can be used in the
container application.
Example
This example paints a VSpin bitmap over a button.
Visual Basic
'Assume that there is a button
'named Command1 on the
'current form. You must set the
'Style property of Command1 to
Graphical"
Command1.Picture =
VSpin1.ControlPicture
Chapter 6: ActiveX Controls
VSpin User Guide
Visual C++
/* The CPicture class is imported into
your project when the ActiveX is
installed */
CButton button;
// Create a button
CPicture VSpinPic;
VSpinPic =
m_VSpin.GetControlPicture();
// Retrieve the picture
button.SetBitmap((HBITMAP)
VSpinPic.GetHandle());
/*Paint the bitmap onto the button*/
89

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents