BenchCel Microplate Handler User Guide : BenchCel ActiveX control : Properties

Properties
IPictureDisp* ControlPicture
Description
Read-only property that the client can use to get an icon to represent the ActiveX control.
This example paints a BenchCel bitmap over a button.
Visual C++ example
/*The CPicture class is imported into your project when the ActiveX is installed*/
CButton button;
//Create a button
CPicture BenchCelPic;
BenchCelPic = m_BenchCel.GetControlPicture();
//Retrieve the picture
button.SetBitmap((HBITMAP)BenchCelPic.GetHandle());
/*Paint the bitmap onto the button*/
Visual Basic example
'Assume that there is a button
'named Command1 on the
'current form. You must set
'the style property of
'Command1 to Graphical
Command1.Picture = BenchCel.ControlPicture
SHORT Speed
Description
Property to specify how fast the BenchCel device should move. 0 = slow, 1 = medium, 2 = fast. This property should not be changed during an operation. Setting this property to an invalid value will have no effect (call will be ignored).
Visual C++ example
//Set the speed to fast
m_BenchCel.speed = 2;
Visual Basic example
'Set the speed to fast
BenchCel.Speed = 2
BOOL Blocking
Description
Specifies whether the ActiveX should block during an execution of a command. If true, commands, such as PickAndPlace, will not return until the action completes or an error occurs. If false, the command will return immediately without waiting for the action to complete and invoke an event to indicate successful completion of the command. Errors will be indicated through one of two means; 1) the return value might not be S_OK (0), in this case, no event will be fired; 2) an error event is fired. When an error occurs, the ActiveX expects a call to Abort, Retry or Ignore. ShowDiagsDialog can be called to allow the user to exercise specific diagnostic/corrective functions, but when the main execution resumes, a call to Abort, Retry or Ignore is necessary to continue the operation.
Visual C++ example
//Set the BenchCel device to block until the command completes
m_BenchCel.Blocking =TRUE;
Visual Basic example
Set the BenchCel device to block until the command completes
m_BenchCel.Blocking =1;
Related topics
 
BenchCel ActiveX methods
BenchCel ActiveX events