Re: Paint or Draw ?

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Fri Jan 29 1999 - 16:54:32 MET


GENTIT Francois-Xavier DAPNIA wrote:
> 
>    Dear Rooters,
>    Could somebody explain to me what is the difference, for instance for an
> object of type TText, between
> 
>       TText::Draw()       and      TText::Paint()
> 
>   When do I have to call which ?
>   Thanks in advance
> 
> F.X. Gentit
> DAPNIA/SPP CEN Saclay
> tel : 01 69 08 30 38

Basically, you will never call Paint(), but always Draw().
Paint() just paints on the screen the object involved and is called by
many methods internally.
Draw() will just append the object to the list of objects attached to
the pad. The pad's Update() method will call all the Paint() methods of
all the attached objects.

Well, that's what I understood. Rene, correct me if I'm wrong.

Damir
-- 
=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:28 MET