You are not logged in.
Hi, I use a standard InputQuery replacemnt like this:
function InputQuery(const ACaption, APrompt: string; var Value: string): boolean;
var
Task: TTaskDialog;
begin
Task.Inst := ACaption;
Task.Content := APrompt;
Task.Query := Value;
Result := Task.Execute([cbOk, cbCancel], 0, [tdfQuery], tiQuestion) = mrOk;
if Result then
Value := Task.Query;
end;
I need to focus on edit component instead the button.
Is it possibile or I have to change the FormShow method?
Thanks
Cocce
Offline
Good idea.
I've made the following modifications:
* added tdfQueryFieldFocused optional flag to focus the input field component
* InputBox function will now focus the input field component by default
Online
Good idea.
I've made the following modifications:
* added tdfQueryFieldFocused optional flag to focus the input field component
* InputBox function will now focus the input field component by default
Veryyyyyyyyyyyyyyyyyy gooooood.
Thanks
Offline