Creating a custom user control – Kofax DOKuStar Validation User Manual

Page 76

Advertising
background image

DOKuStar Validation Programming Manual

Page

72

Creating a Custom User Control

In the previous section is described, how to create an add-in for Validation.

In this section a new custom user control is added to Validation. The appropriate service is called

UserCtrlBarData

service. It is only possible to add one and only one custom user control.

We will implement the custom user control for Validation using an add-in:

As first step we have to add another reference. Use the command

References

of the

Project

menu. In the

References

dialog box select the entry

ODT DOKuStar Validation (Services) … Type Library

of the

actual installed version:

Now we add an ActiveX control to our project and change its name from

UserControl1

to

User

. Our project

now contains a class and a user control:

In the object view of the new control

User

we add two buttons and set the caption to

Clear

and

Restore

respectively:

Advertising