# Redraw entire FXCanvas instead of just exposed parts?

**URL:** <https://www.ruby-forum.com/t/redraw-entire-fxcanvas-instead-of-just-exposed-parts/164854>\
**Category:** FXRuby\
**Created:** [April 6, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/redraw-entire-fxcanvas-instead-of-just-exposed-parts/164854 "2009-04-06T17:54:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomast](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc79bd/32.png) [@tomast](https://www.ruby-forum.com/u/tomast)\
**Post date:** [April 6, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/redraw-entire-fxcanvas-instead-of-just-exposed-parts/164854/1 "2009-04-06T17:54:33Z")

</div>

Hi all

I am drawing some text on the screen, which is changed every 3 seconds.  
I need to get the canvas to change when the text does. If I move a  
window over the text on the canvas, it redraws the exposed parts with  
the new text, but I need a way to automatically refresh the whole canvas  
when the text is updated. Is this possible? I have searched on  
[http://www.fxruby.org/doc/api/](http://www.fxruby.org/doc/api/) and tried refresh, repaint and  
forceRepaint which are mentioned there but none of these seem to work.
