Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.03.06;
Скачать: 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 вся ветка

Текущий архив: 2005.03.06;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.036 c
4-1102524244
Костя
2004-12-08 19:44
2005.03.06
системное время


3-1107345693
slaga
2005-02-02 15:01
2005.03.06
Заполнение DataSet а в два захода.


3-1107429115
Guest666
2005-02-03 14:11
2005.03.06
перемещение информации в BDE


1-1109056820
Hadroran
2005-02-22 10:20
2005.03.06
Чтение генератора из InterBase


9-1102282566
Domowoi
2004-12-06 00:36
2005.03.06
Облом с PowerDraw