Form Repaint

I tried to simulate an effect of one form sliding from another. during that, the "upper" one have horribly flickered. Is there a way to stop it from repainting itself while the "lower" one is sliding, and then let it repaint itself back again as mch as it wants(as I pretend to myself, this is the way to make it stop flickering. If the way differs, please put the working way here)?
LVL 1
duke_nAsked:
Who is Participating?
 
cookeyConnect With a Mentor Commented:

LockWindowUpdate(Handle);
...//your code
LockWindowUpdate(0);

The Handle is "upper" form's handle
0
 
intheCommented:
Hi
look at beginupdate and endupdate in the delphi help.
also remember application.processmessages
that should help some

0
 
EpsylonCommented:
Try:

- Double buffered property (Delphi 4)
- LockWindowsUpdate(...)
0
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
duke_nAuthor Commented:
BOY! are you fast or are you fast?
I'll check it now
0
 
duke_nAuthor Commented:
It worx perfectly, muchachos.
thanx
0
 
duke_nAuthor Commented:
Oh, MAN!
this flashes the background windows if there are some when I do the
  LockWindowUpdate(0);


0
All Courses

From novice to tech pro — start learning today.