How can we verify from the Form1 code the value of a variable/checkbox from Frame1? defining a global public variable to store the value of interest? what approach would you recommend?
Check the following example:
In frame1 there's a checkbox that if true indicates that the results has been correctly stored or saved to a file.
In Form1 there's a Quit button that veryfies the status of this checkbox, and if not checked it doesn't allow the user to quit the program and displays a messagebox warning about the reason.
procedure TForm1.Button2Click(Sender: TObject);
begin
if (CheckBox1.Checked = true) then // this CheckBox1 is in Frame1. What's the best way to access it? a kind of Getter?
Form1.Close else ShowMessage('Save results before quitting.');
end;