New topic: 

Finding containercontrol in a controlcount loop

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        rjaber          Post subject: Finding containercontrol in a 
controlcount loopPosted: Tue Jan 22, 2013 4:43 pm                         
Joined: Mon Nov 22, 2010 4:51 pm
Posts: 55
Location: Stockholm, Sweden.                In a new project I've added 
ContainerControl1 and ContainerControl2.

Put ContainerControl1 onto Window1 in the IDE. Secondly I made a property 
called myCC as ContainerControl2 on Window1
and then embedding it in the Open event.

Window1.Open
myCC = New ContainerControl2
myCC.EmbedWithin(Window1,0,0)
myCC.Show


for i as integer = 0 to self.controlcount-1
  if self.control(i) isa ContainerControl or self.control(i) isa 
ContainerControl1 or self.control(i) isa ContainerControl2 then
  msgbox "found a containercontrol"
  next


Am I missing the obvious here?


Ive gone through alot of posts with code examples and cant get any of them to 
fire on containercontrol.      
_________________
Richard B.
Real Studio 2012> OS X  
                             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