is there a function for this?

is there a function to refresh the screen in delphi?
if so..pls guide me..thanx
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What do you mean with it?
Refresh your program are total screen?

Every component can be refreshe in delphi. Use refresh for this. e.g. Form1.Refresh;

Regards, Zif.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
superboyAuthor Commented:
i mean refresh the coolbar or form..
superboyAuthor Commented:
the refresh does not work...
is there a win api function to do it?
or a procedure ?
Well, maybe you can first refresh all the components on the form, before you refresh the form itself.

from delphi help :


The following code refreshes all windowed controls of Form1, then refreshes Form1.

  I: Integer;
  for I := 0 to Form1.ComponentCount-1 do
    if Form1.Components[i] is TWinControl then
      with Form1.Components[i] as TWinControl do

A WinAPI function is redrawwindow for a certain rectangle or the UpdateWindow(handle) for the whole window.
But this function is already called by refresh.

regards, Zif.
If the "Refresh" method dosen´t work correctly,
uses the "Update" method.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.