Enabling TAction and creating ExitActionExecute function solved my problem.
void __fastcall TForm1::ExitActionExecute(TObject *Sender)
{
// function to show up the element
}
//---------------------------------------------------------------------------