Hi all.
 
Just fixing a bug in an app. I have written (for myself) and I cant seem to fix it.
 
Heres the problem.
I have a form that on the Application.OnMinimize event gets sent to another procedure which then hides the form from the taskbar and displays an icon in the system tray.
This works ok, BUT when I redisplay the form, I cant get teh focus back to the form. I.e. the Captionbar of the form is the colour of one that has lost the focus, and I cant access any of the controls on the form either !
 
I have tried to setfocus to the form etc. but nothing seems to happen.
 
I am hiding the form either but the HIDE command, or by using SW_HIDE in a sendmessage, both have the same result.
Likewise, I am using either the command SHOW or SW_SHOWNORMAL in a sendmessage to redisplay the form.
P.s This is Delphi 5 with SP1.
 
has anyone else struck this problem ? or am I missing something ?? I am not sure WHATS going on.
 
Any help appreciated...
 
Cheers, Jeremy Coulter
 
 

Reply via email to