Solved

is there a function for this?

Posted on 1998-02-16
5
129 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
ID: 1359331
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
ID: 1359332
i mean refresh the coolbar or form..
0
 

Author Comment

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

Expert Comment

by:ZifNab
ID: 1359334
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
ID: 1359335
If the "Refresh" method dosen´t work correctly,
uses the "Update" method.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

789 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