Solved

is there a function for this?

Posted on 1998-02-16
5
126 Views
Last Modified: 2010-04-04
is there a function to refresh the screen in delphi?
if so..pls guide me..thanx
0
Comment
Question by:superboy
  • 2
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 0 total points
Comment Utility
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.
0
 

Author Comment

by:superboy
Comment Utility
i mean refresh the coolbar or form..
0
 

Author Comment

by:superboy
Comment Utility
the refresh does not work...
is there a win api function to do it?
or a procedure ?
0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
Well, maybe you can first refresh all the components on the form, before you refresh the form itself.

from delphi help :

Example

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

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

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.
0
 

Expert Comment

by:jpussacq
Comment Utility
If the "Refresh" method dosen´t work correctly,
uses the "Update" method.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now