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



"bmahn" <bmahn@xxxxxxxxx> wrote in message
news:f75m0v$5vl$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Don't control the visibility with TForm.Visible := True/False!
Always use Show and Hide!

Looking in the D5 VCL, TCustomForm.Hide has a one-line implementation.
It sets Visible to False.

TCustomForm.Show actually has a *two*-line implementations. It sets
Visible to True, then calls BringToFront.

J'accuse. You are not a programmer but a magician. And not a very good
one.


Use the ApplicationEvents Component instead of an own code.

Why? Like Show/Hide and the Visible property, it's simply going to
do the same things. There is no magic.


In TForm.Show use as last orders (but before an 'inherited;'):
Self.Update;
Application.ProcessMessages;
Perhaps this helps.

It won't. It will simply force issues that the OS would get around
to by itself, given enough time. Enough being about a millisecond.

Groetjes,
Maarten Wiltink


.


Quantcast