Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
/* UNIT1.CPP */
#include "Unit2.h"
void __fastcall Form1::Button1Click(TOBject *Sender)
{
if (Form2->ShowModal() == mrOk) {
// Do something (user clicked OK)
}
}
/* UNIT2.CPP */
void __fastcall Form2::OkButtonClick(TObject *Sender)
{
ModalResult = mrOk;
}
void __fastcall Form2::CancelButtonClick(TObject *Sender)
{
ModalResult = mrCancel;
}