?
Solved

is there a function for this?

Posted on 1998-02-16
5
Medium Priority
?
132 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month12 days, 18 hours left to enroll

777 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