Gustavo,

My problem was caused by the fact that the background for my TImage was black. When I placed it on a black-coloured panel (I used a TScrollBox as I want to capture mousewheel events), I found the flicker was more or less unoticeable.

Gustavo Enrique Jimenez wrote:


2007/5/28, Dave Coventry <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:

    Gustavo Enrique Jimenez wrote:
    >
    >
    > There are good tutorials/examples on
    > http://wiki.lazarus.freepascal.org/Developing_with_Graphics
    <http://wiki.lazarus.freepascal.org/Developing_with_Graphics>
    > <http://wiki.lazarus.freepascal.org/Developing_with_Graphics>
    Gustavo,

    Thank you for your reply.

    But they don't really help.

    Do you draw a line to the Image1.Canvas? or do you draw to
    Image1.Picture.Bitmap.Canvas as suggested by the wiki? Which seems to
    make the flickering worse?

    Or do you need to suspend onPaint until you've finished drawing?

    In which case, how do you suspend onPaint?



I have used the "Create a custom control which draws itself" method, and it worked very well !! Try this method.

Gustavo

ps: for the record, Felipe Monteiro help me A LOT in private mails. Thanks Felipe, and excuse me for bother you in private.





--
Dave Coventry
Tel   (home):  +27(0)31 3092301
Tel (office):  +27(0)31 2058448

Cell: +27(0)82 9000179

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to