Hi would someone be able to help us on this. I am trying to detect an OnDeactivate event from TApplication. However, i'm not quite sure how i can detect this event from within my application. The OnDeactivate within my form only detects if another form has been deactivated, and not the whole application.
any help would be greatly appreciated.....
I have created my own event handler which tries to reactivate the application, but it only flashes on the task bar. I need the whole window to be set in focus.
void __fastcall TForm1::AppDeactivate(TObject *Sender)
HWND Window = FindWindow(NULL, "Form1");