New topic: 

Change a super class of an object

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        sergiotamborini          Post subject: Change a super class of 
an objectPosted: Mon Oct 15, 2012 3:44 pm                         
Joined: Tue Feb 06, 2007 6:11 am
Posts: 57                Hi all!
I need to change by code the super class of many pushbuttons in my project. I 
need pushbuttons become bevelbuttons.
I've tried something like this
for i as Integer = 0 to self.ControlCount - 1
  dim c as Control = self.Control(i)
  if c isA PushButton then
  PushButton(c).super=BevelButton
  'change parameters of bevelbuttons here
  
  end if
next

but it seems generate an error in the compiler "Syntax error".

Is there a way to do this or have I to change they all by hand? Many thanks!   
                             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