Главная страница
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.027 c
1-1109140252
Barman
2005-02-23 09:30
2005.03.06
ADO и Delphi8


3-1107529765
denis24
2005-02-04 18:09
2005.03.06
select ...blob-поля + count() ...group by


14-1108492975
Michael5
2005-02-15 21:42
2005.03.06
Как заменить родное событие компонента своим?


6-1104171339
KarpUha
2004-12-27 21:15
2005.03.06
Ответ от модема


1-1108965730
Unknown
2005-02-21 09:02
2005.03.06
Возникло 3 вопроса: