New topic: 

Graphics.ClearRect won't work

<http://forums.realsoftware.com/viewtopic.php?t=32191>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       m-v-p           Post subject: Graphics.ClearRect won't 
workPosted: Tue Jan 26, 2010 2:34 am                        
Joined: Sat Jan 07, 2006 1:39 am
Posts: 239              I can't get ClearRect to work. Example :
On Window1 I have a Canvas1 (Top=20, Left=20, Width=100, Height=100)
In the Canvas1 Paint event :Code:g.DrawString "The Quick Brown Fox",10,20No 
problem.
Then I put a PushButton1 in Window1.
In the PushButton's Action event :Code:Canvas1.Graphics.ClearRect 20,20,100,100
Canvas1.Graphics.DrawString "The Fox escaped !",10,20
'It just draws the new text over the old one without any clearing first.
I can't use something like
Canvas1.Graphics.forecolor= RGB(200,200,200)
Canvas1.Graphics.FillRect 0,0, Canvas1.Graphics.Width, Canvas1.Graphics.Height
to clear the canvas first, because that covers it's nice backdrop graphic.

Greetings

Michel

Oups !
It should have been :
CanVas1.Graphics.ClearRect 0,0,100,100 it seems.
But now it still erases the nice backdrop....   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to