New topic: 

Can't subclass a window?

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

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        basil.bourque          Post subject: Can't subclass a 
window?Posted: Fri Mar 04, 2011 8:56 pm                         
Joined: Thu Apr 15, 2010 10:41 pm
Posts: 193
Location: Seattle                I have an existing project with windows that 
are subclassed from other windows. 

Now I can't do it in REAL Studio 2010 Release 5.1. 

1) Create a window.
2) Create another window.
3) Set this window's "Super" property to that of the other window.
4) Run the app. 
BAM! Compiler reports error: 
"The project item Window3 can not inherit from a window (Window2).

As I said, I've done this before. 
• Is there some trick I'm forgetting? 
• Or is R5.1 broken? 
• Or did REAL Studio change to no longer allow window subclassing?      
_________________
--Basil Bourque

Using REAL Studio 2010 r5.1 with Postgres 9.0.3 on Mac OS X 10.6.5
http://crafted-software.blogspot.com/  
                             Top                 IMIXMMM          Post subject: 
Re: Can't subclass a window?Posted: Fri Mar 04, 2011 9:03 pm                    
     
Joined: Thu Oct 26, 2006 4:49 am
Posts: 262                Hi Basil,

You need MORE or LESS Coffee!! 

Just kidding mate!

1) Create a Class Set its super to window

2) Create a window, open it.
3) Set the window's super to The Class you just created.

Works for me, compile OK, I am using MAC ( and latest of System And RBS )
Dave M   
                             Top                basil.bourque          Post 
subject: Re: Can't subclass a window?Posted: Fri Mar 04, 2011 9:11 pm           
              
Joined: Thu Apr 15, 2010 10:41 pm
Posts: 193
Location: Seattle                Yes, I need to calibrate my caffeine level. 

You solved the problem. Thanks!

A window cannot inherit from another window. But a window can inherit from a 
class whose "Super" is set to "Window".

I posted a little example to my blog so I won't forget.      
_________________
--Basil Bourque

Using REAL Studio 2010 r5.1 with Postgres 9.0.3 on Mac OS X 10.6.5
http://crafted-software.blogspot.com/      

    Last edited by basil.bourque on Fri Mar 04, 2011 9:32 pm, edited 1 time in 
total.   
                             Top                 IMIXMMM          Post subject: 
Re: Can't subclass a window?Posted: Fri Mar 04, 2011 9:19 pm                    
     
Joined: Thu Oct 26, 2006 4:49 am
Posts: 262                Don't worry Basil, I have adjusted my caffeine levels 
as well!

Dave M   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 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