Referring to the example script 'Say and Ask.psc' from the script repository, and in particular the 'AskCustomChecked' example, is it possible to pre-select one of the checkbox items, so it appears already checked?
following code from 'Say and Ask.psc':
Code: Select all
procedure AskCustomChecked;
var
ASl: TTntStringList;
AChecked: Boolean;
ARes: Integer;
begin
AChecked := True;
ASl := TTntStringList.Create;
ASl.Add('?john');
ASl.Add('?jane');
ASl.Add('?baby');
ASl.Add('?janie');
ASl.Add('?johnny');
ARes := AskCustom(
'select option',
'sub text',
'', // 'info text'
'', // 'check this'
AChecked,
ASl
);
if ARes <> -1 then
begin
Say(ASl.Text);
end;
ASl.Free;
end;
AskCustomChecked;