Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Dec 14, 2018 6:52 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: canvas backdrop disappears
PostPosted: Mon Dec 10, 2012 10:41 am 
Offline

Joined: Tue Jun 13, 2006 10:32 am
Posts: 44
I have an array of 52 canvases with their backdrops allocated by a subroutine. Not all the canvases are on the screen at the same time. When a sheet window is triggered within the program, the canvas with the highest index number currently on the screen goes blank. The picture is restored if I click on the blank after closing the sheet window. What can I do about this?


Top
 Profile  
Reply with quote  
 Post subject: Re: canvas backdrop disappears
PostPosted: Mon Dec 10, 2012 5:41 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
Instead of setting the backdrop, set a property of the window (or make a canvas subclass and assign it a property) and DrawPicture the image into the canvas in the Paint event.


Top
 Profile  
Reply with quote  
 Post subject: Re: canvas backdrop disappears
PostPosted: Wed Dec 19, 2012 10:53 am 
Offline

Joined: Tue Jun 13, 2006 10:32 am
Posts: 44
Thanks timHare. Problem solved.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group