Página 1 de 1

OnPaint how to...

Publicado: Lun Mar 12, 2012 11:24 am
por Roberto
Hi, Mr. Gimenez,
Can you give me some example of how to use the event OnPaint?
There are some situations where I need to move a control (panel, bevel, so on) BEFORE it appear to the user. I'm using OnShow, but the the result is terrible.
Another situation is when I need a control centered in the main form (not the screen) .and. the user resize it =(
tks in advance

OnPaint how to...

Publicado: Lun Mar 19, 2012 11:09 am
por jfgimenez
Roberto,
sorry for the delay.
> Can you give me some example of how to use the event
> OnPaint?
> There are some situations where I need to move a control
> (panel, bevel, so on) BEFORE it appear to the user. I'm
> using OnShow, but the the result is terrible.
> Another situation is when I need a control centered in the
> main form (not the screen) .and. the user resize it =(
Those task aren't related to OnPaint event at all. Try to use the
'nAnchors' property of every control on the form.
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info