getWorkMode()

Declaration

function getWorkMode(out Status: Integer)

Description

Function returns the internal Workmode of SecureSign, which can be use to check the current status of the workflow.

 

ValueStatus
0
None
1
No Document
2
Transitional
3
Viewing
4
Edit
5
Check
6
Signing Request
7
Drawing Rectangle
8
Drawing Signature
9
Embedding Signature
10
Administration
11
Admin Drawing Signature
12
Admin Transitional

Sample

procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
begin
	// Prevent closing of parent form when SecureSign is embedded/overlayed and created
    // and Sign Mode is active
    if Assigned(StepOverSecSign) then
    begin
        CanClose := (StepOverSecSign.getWorkMode < 8);
    end else begin
        CanClose := True;
    end;
end;