New topic: 

Canvas Problem RS 2012r2.1 on Windows

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

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        jetpr          Post subject: Canvas Problem RS 2012r2.1 on 
WindowsPosted: Tue Mar 19, 2013 12:44 pm                                 
Joined: Wed Sep 20, 2006 5:12 pm
Posts: 618
Location: Puerto Rico                This Some time i have a error and the app 
crash but way

  for i=0 to MainFrm.controlcount-1
  if MainFrm.control(i) isa Canvas then
  canvas1(MainFrm.control(i)).backdrop = nil
  Canvas1(MainFrm.control(i)).HelpTag=""
  end
  next
     
_________________
Thanks for any contribution  and  God blesses all (I start Using RS in 
10/12/2010)
 Mac Mini with Snow Leopard v10.6.8 and Real Studio 2012r1 Pro And Windows 7 
RS2012r1 Personal  and  Linux RS2012r1 Personal Register user 
   my Hobbies R/C Turbines Jets Models  
                             Top                timhare          Post subject: 
Re: Canvas Problem RS 2012r2.1 on WindowsPosted: Tue Mar 19, 2013 2:48 pm       
                  
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12160
Location: Portland, OR  USA                What is the error?

The only thing I see that might be wrong is you are testing for "isa Canvas", 
but casting as "canvas1".  If canvas1 is a subclass name, then you would get an 
IllegalCastException if the canvas weren't an instance of canvas1.  If canvas1 
is an instance of a canvas on the window, then your code is simply wrong and 
you should cast as Canvas, not Canvas1.   
                             Top                jetpr          Post subject: 
Re: Canvas Problem RS 2012r2.1 on WindowsPosted: Tue Mar 19, 2013 6:02 pm       
                          
Joined: Wed Sep 20, 2006 5:12 pm
Posts: 618
Location: Puerto Rico                ok thanks for that key

     
_________________
Thanks for any contribution  and  God blesses all (I start Using RS in 
10/12/2010)
 Mac Mini with Snow Leopard v10.6.8 and Real Studio 2012r1 Pro And Windows 7 
RS2012r1 Personal  and  Linux RS2012r1 Personal Register user 
   my Hobbies R/C Turbines Jets Models  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
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