wwButton cancel or Modal result

Comments

2 comments

  • Roy Woll

    I think this is more general FireMonkey question. The way I would handle it is to use the OnKeyDown of the form and trap for the escape key.

    procedure TwwLookupDialogForm.FormKeyDown(
    Sender: TObject; var Key: Word;
    var KeyChar: Char; Shift: TShiftState)
    begin
    if key=vkescape then
    begin
    ModalResult := mrcancel;
    end
    end
    0
    Comment actions Permalink
  • Johan Harmse

    I see the www Button doesn't have the cancel or default properties like the normal button object , it makes life easier that to put all the extra code in every form and the tab is also not working on the wwButton even if the tabstop is enabled

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk