Re: minimize button on a delphi created mainwindow not working on an XP system



Phil Scadden wrote:

Have you tried catching _only_ the SC_MINIMIZE message and not all
system command messages (as I think you are).


Since it calls inherited, and I can see from the statusbar message that
application.minimize
IS called when I press the minimize button, I am not sure this is relevant.
I only put this
code in to see for sure that application.minimize was called.


What are you doing that causes the effect at formshow.


This seems to be the culprit. formshow can be a lengthy routine. I am trying
moving all of its
slow stuff into another thread and see what happens.


you do not what to do any GUI stuff in formshow.
the kind of GUI that will trigger repaints etc..
if you need some GUI code of that type to be executed
there, I would suggest to post a user(custom) message to
your own app and handle it when the message is received.

The reason I say this is that i've had lots of experience
with failing GUI code in the formshow even. it normally just
seems like it never gets executed.



--
"I'm never wrong, once i thought i was, but was mistaken"
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5

.


Quantcast