I can't be much help cos I have not had the problem myself and I am new to Delphi, but
have come ideas that you may like to consider
and most "normal" people are in bed so you may have a long wait otherwise.
First - are you terminating the "thing" on the task bar? It may be that you are
making this taskbar "thing" a that has the focus
and until it is terminated.
Can you make an new application that only has one field and a button (so there are two
things that can have focus) - when you press
the button you get the taskbar thingy and then play around with popup things on that
taskbar thingy until you stumble across the one
that gives back to the main form. Don't put this action on the OnMinimise action
until you get it working with the simple "push
button" so you do not get confused about things that Windows wants to do and things
that you want to do.
And one more thing..... can you email me the thing that enables me to put something on
the taskbar - to [EMAIL PROTECTED] -
Thanks.
Chrissy R
www.home.gen.nz
----- Original Message -----
From: Jeremy Coulter <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Saturday, November 11, 2000 11:03 PM
Subject: [DUG]: Focus not returning
> 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
>
>
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"