Вниз
Скачать: CL | DM;

Зачем Refresh и Repaint, если одго и то же?   Найти похожие ветки 

← →
Коля   (2005-02-23 22:36) [0]

Нашёл вот такое в Controls.pas

procedure TControl.Refresh;
begin
 Repaint;
end;

procedure TControl.Repaint;
var
 DC: HDC;
begin
 if (Visible or (csDesigning in ComponentState) and
   not (csNoDesignVisible in ControlStyle)) and (Parent <> nil) and
   Parent.HandleAllocated then
   if csOpaque in ControlStyle then
   begin
     DC := GetDC(Parent.Handle);
     try
       IntersectClipRect(DC, Left, Top, Left + Width, Top + Height);
       Parent.PaintControls(DC, Self);
     finally
       ReleaseDC(Parent.Handle, DC);
     end;
   end else
   begin
     Invalidate;
     Update;
   end;
end;
Вопрос: А зачем нужен Refresh?


← →
Palladin ©   (2005-02-23 22:40) [1]

Пережиток прошлого...



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.033 c
3-1107334339
Rostislav Rotaru
2005-02-02 11:52
2005.03.06
Помогите написать сложную для меня процедуру или функцию


1-1108965198
xOn
2005-02-21 08:53
2005.03.06
Процедуры и функции Delphi


3-1107536212
aleksey
2005-02-04 19:56
2005.03.06
locate по нескольким полям


1-1108958353
Valeriii
2005-02-21 06:59
2005.03.06
Random не работает!!!!!!!


14-1108572484
Ермак
2005-02-16 19:48
2005.03.06
Прошу прочитать статью




   Наверх