Главная страница
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.043 c
10-1085723911
Punker
2004-05-28 09:58
2005.03.06
Выбрать лист в Excel?


1-1108899432
physic
2005-02-20 14:37
2005.03.06
TChart не строит ординату больше 1817


4-1106136207
YV
2005-01-19 15:03
2005.03.06
Запрет принудительного завершения процеса


1-1109148511
dolmat
2005-02-23 11:48
2005.03.06
Отключение питания


9-1102443928
Макс
2004-12-07 21:25
2005.03.06
GLFPSMovementManager