Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to refresh an TImage object? Posted by earth_walker on 29 Jul 2003 at 12:38 PM
Hi! I use OpenGL to draw on a TImage object. When I Clear the buffer and redraw the graph, I found the the image in TImage object doesn't changes immediately. Only when I use another window to cover the TImage object and discover it again, the covered part of TImage is updated.
How can I solve this problem and let it update itself immediately?
Thank you!
Report
Re: How to refresh an TImage object? Posted by earth_walker on 29 Jul 2003 at 1:42 PM
Hi!
I find a very irregular method:
after redrawing the buffer, assign False to the "Visible" field of TImage object then assign it to True immediately. This operation is equal to quickly cover it and expose it again.
I also tried to use the "refresh" method of the Canvas on the TImage object, but it doesn't work.
Is there any better method?
Thank you!
Report
Re: How to refresh an TImage object? Posted by zibadian on 29 Jul 2003 at 3:47 PM
: Hi!
: I find a very irregular method:
: after redrawing the buffer, assign False to the "Visible" field of TImage object then assign it to True immediately. This operation is equal to quickly cover it and expose it again.
: I also tried to use the "refresh" method of the Canvas on the TImage object, but it doesn't work.
: Is there any better method?
: Thank you!
:
Refresh or Repaint of the TImage itself might be the solution.
Report
Re: How to refresh an TImage object? Posted by earth_walker on 31 Jul 2003 at 6:01 AM
Thank you!




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.