private void step2()
{
WizCtl.Reset();
// insert message
WizCtl.Font = Pad.TextFont;
WizCtl.AddObject(ObjectType.ObjectText, "txt", "centre", "top", "Please sign below...", null);
// insert a signature line
WizCtl.Font = Pad.SigLineFont;
if (Pad.Model == "STU-300")
{
WizCtl.AddObject(ObjectType.ObjectText, "txt", "left", Pad.signatureLineY, "X..............................", null);
}
else
{
WizCtl.AddObject(ObjectType.ObjectText, "txt", "centre", Pad.signatureLineY, "X..............................", null);
}
// insert the signature control
WizCtl.Font = Pad.TextFont;
WizCtl.AddObject(ObjectType.ObjectSignature, "Sig", 0, 0, SigCtl.Signature, null);
// provide who and why for sig capture
WizCtl.AddObject(ObjectType.ObjectText, "who", "right", Pad.whoY, "J Smith", null);
WizCtl.AddObject(ObjectType.ObjectText, "why", "right", Pad.whyY, "I certify that the information is correct", null);
// insert the buttons
WizCtl.Font = Pad.ButtonFont;
if (Pad.Model == "STU-300")
{
WizCtl.AddObject(ObjectType.ObjectButton, "Cancel", "right", "top", "Cancel", Pad.buttonWith);
WizCtl.AddObject(ObjectType.ObjectButton, "Clear", "right", "middle", "Clear", Pad.buttonWith);
WizCtl.AddObject(ObjectType.ObjectButton, "OK", "right", "bottom", "OK", Pad.buttonWith);
}
else
{
WizCtl.AddObject(ObjectType.ObjectButton, "Cancel", "left", "bottom", "Cancel", Pad.buttonWith);
WizCtl.AddObject(ObjectType.ObjectButton, "Clear", "center", "bottom", "Clear", Pad.buttonWith);
WizCtl.AddObject(ObjectType.ObjectButton, "OK", "right", "bottom", "OK", Pad.buttonWith);
}
// set callback when a button is pressed
Callback.EventHandler = new WizardCallback.Handler(Step2_Handler);
WizCtl.SetEventHandler(Callback);
WizCtl.Display();
}