Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat May 26, 2018 3:18 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ContainerControl
PostPosted: Sat Sep 15, 2012 1:58 pm 
Offline
User avatar

Joined: Tue May 31, 2011 9:16 am
Posts: 104
Location: Chapin, SC
Trying to figure out how to use ContainerControl.

I have been able to create the ContainerControl and put it into a window using the IDE, which work ok.

Would like to put the ContainerControl into the window at run time. On the following instruction:

ContainerControl1.EmbedWithin( Self, 50, 100 )

I get: (the word "Embedwithin" is highlighted.)

Code, Window1.Open, line 3, This method or property does not exist, ContainerControl1.EmbedWithin( Self, 50, 100 )

What am I doing wrong?

Is there an example somewhere?

_________________
Jim Smith
http://www.rvcarelogbook.com
Mac OSX 10.8, RS 2012R2 Enterprise


Top
 Profile  
Reply with quote  
 Post subject: Re: ContainerControl
PostPosted: Sat Sep 15, 2012 3:57 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
You embed an instance of the control:

dim cc as ContainerControl1
cc = new ContainerControl1
cc.EmbedWithin(self, 50, 50)


Top
 Profile  
Reply with quote  
 Post subject: Re: ContainerControl
PostPosted: Sat Sep 15, 2012 4:31 pm 
Offline
User avatar

Joined: Tue May 31, 2011 9:16 am
Posts: 104
Location: Chapin, SC
Works like a charm..

Thanks :D

_________________
Jim Smith
http://www.rvcarelogbook.com
Mac OSX 10.8, RS 2012R2 Enterprise


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