Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.145 Beiträge
 
Delphi 12 Athens
 
#4

Re: Verständnisfrage zu Update,Invalidate,Repaint

  Alt 3. Mai 2010, 11:53
Zitat von p80286:
Ich habe den Verdacht, daß das Repaint eine Kombination aus Invalidate/Update und Application.Processmessages ist, da ich meine beobachtet zu haben, daß ein Repaint sofort ausgefühert wird,
Delphi-Quellcode:
procedure TWinControl.Repaint;
begin
  Invalidate;
  Update;
end;
"Invalidate/Update" stimmt also schonmal
und Update ruft quasi die Methoden für's Neuzeichnen direkt auf, weßhalb daher natürlich die Änderungen auch sofort sichtbar sind.


[add]
The MSDN-Library durchsuchenInvalidateRect function adds a rectangle to the specified window's update region. The update region represents the portion of the window's client area that must be redrawn.

The MSDN-Library durchsuchenUpdateWindow function updates the client area of the specified window by sending a WM_PAINT message to the window if the window's update region is not empty. The function sends a WM_PAINT message directly to the window procedure of the specified window, bypassing the application queue. If the update region is empty, no message is sent.
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat