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

Не перерисовывается PaintBox   Найти похожие ветки 

 
mmb1   (2002-11-15 19:50) [0]

Вызываю
InvalidateRect(PaintBox1.Canvas.Handle, NULL, TRUE);
а не перерисовывается. Что не так вызываю ?


 
reonid ©   (2002-11-15 20:48) [1]

А Rect то где?

var R: TRect;
R := PaintBox1.ClientRect;
InvalidateRect(PaintBox1.Canvas.Handle, @R, TRUE);

(или просто PaintBox1.Invalidate)


 
mmb ©   (2002-11-16 09:14) [2]

Описание:
procedure InvalidateRect(Wnd: HWnd; Rect: LPRect; Erase: Bool);

Rect: TRect (в кооpдинатах пользователя), добаляемая к области обновления или NULL для всей области пользователя.


 
MBo ©   (2002-11-16 09:58) [3]

The invalidated areas accumulate in the update region until the region is processed when the next WM_PAINT message occurs


 
apay ©   (2002-11-16 10:14) [4]

читать внимательней надо:

procedure InvalidateRect( Wnd: HWnd; Rect: LPRect; Erase: LongBool);
^^^^^^^^^^
var Rc: TRect;
...
Rc := PaintBox.BoundsRect;
InvalidateRect( PaintBox.Parent.Handle, @Rc, True );

процедуре должен передаваться ХЕНДЛ ОКНА!


 
mmb ©   (2002-11-16 11:30) [5]

но тогда и Rc должно быть
Rc := PaintBox.Parent.BoundsRect;



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

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



Память: 0.45 MB
Время: 0.009 c
14-93218
KSergey
2002-11-10 12:23
2002.11.28
Сезонность вопросов


14-93232
Grande
2002-11-10 17:18
2002.11.28
Zeoslib для Delphi7


7-93267
Delphi 5.01
2002-09-26 20:19
2002.11.28
ATS0=1


3-92917
Skolotovich
2002-11-11 15:58
2002.11.28
проблема с редактированием БД


3-92935
sau
2002-11-12 08:19
2002.11.28
Делаю запрос к таблице IBX




   Наверх