Assign modalresult (e.g. window.modalresult:= mr_ok) to close a modal form from code with a specific result, without going through a button
Source position: msegui.pas line 3056
public property twindow.modalresult : modalresultty |
Assign modalresult (e.g. window.modalresult:= mr_ok) to close a modal form from code with a specific result, without going through a button — since every widget's window refers to the same top level window, this can be called from anywhere in the form, not only from the top level widget itself.