From 1764ca51847cff878acea4b0fa498288d61f3d17 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 26 Oct 2008 18:37:53 +0100 Subject: Plugin interface: pass cancellation button id in ask_question callback --- vfs/uVFSprototypes.pas | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vfs/uVFSprototypes.pas') diff --git a/vfs/uVFSprototypes.pas b/vfs/uVFSprototypes.pas index 7cff78b..ba848e9 100644 --- a/vfs/uVFSprototypes.pas +++ b/vfs/uVFSprototypes.pas @@ -262,10 +262,12 @@ type // Return index of the choice selected or negative number when dialog has been cancelled + // cancel_choice: index which represents the cancellation choice. Set to -1 (e.g.) to disable this feature PVFSAskQuestionCallback = ^TVFSAskQuestionCallback; TVFSAskQuestionCallback = procedure (const AMessage: PChar; const Choices: PPChar; choice: PInteger; + cancel_choice: Integer; user_data: Pointer); cdecl; PVFSAskPasswordCallback = ^TVFSAskPasswordCallback; -- cgit v1.2.3