/ Forums / Advansys Formativ / Creating Solutions with Formativ / Clearing the mouse/keyboard buffer after displaying a form / Reply To: Clearing the mouse/keyboard buffer after displaying a form

#7713
Support 1
Participant

    Simon,

    Please note the following controls on the Formativ component palette:

    • TButton
    • TBitBtn
    • TRzButton
    • TRzBitBtn

    All of these controls have the property ModalResult. If you add one of these controls to a form, you can see the list of legal values for ModalResult in the Object Inspector (open the drop-down list).

    Forms also have the property ModalResult (not shown in the Object Inspector – it is only meaningful at runtime).

    The way to close a modal dialog in code is to set Form.ModalResult to one of the legal values (except mrNone), for example:

      frmWait.ModalResult = mrOK

    The value that you choose will become the result of the function frmWait.ShowModal.

    An applet’s behavior (whether code or forms) is always the same, whether it is an “open source” or Flexalocked applet.

    Regards,
    Advansys Support