I am new to RAD STUDIO C++ Builder and I am given a task to write a program by my current company. I have created some Menu Items and sub items to write Actions in case of a click event.
But the problem is that the items are greyed out and my click actions are not getting executed when i click the items.
Menu item and the sub items are enabled = True and Visible = True.
Enabling TAction and creating ExitActionExecute function solved my problem.
void __fastcall TForm1::ExitActionExecute(TObject *Sender)
{
// function to show up the element
}
//---------------------------------------------------------------------------