Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Mar 26, 2017 12:03 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: WebPage Subclassing question
PostPosted: Tue May 21, 2013 2:39 pm 
Offline

Joined: Sat Sep 15, 2007 10:25 pm
Posts: 13
I have created a WebPage with a toolbar and WebLabel. I want it to be the basis for several pages so I subclass the new pages of my masterPage. I am able to update buttons states on the toolBar on the Super but I am not able to update the label on the Super so all the subclassed pages reflect the changes.

Any light and knowledge would on the best way to update information on all of the subclassed pages would be greatly appreciated. An example using a WebLabel is what I need.

Thanks,

Roibn Colston


Top
 Profile  
 
 Post subject: Re: WebPage Subclassing question
PostPosted: Wed May 22, 2013 10:12 am 
Offline
User avatar

Joined: Mon Nov 29, 2010 7:01 pm
Posts: 446
Robin Colston wrote:
I have created a WebPage with a toolbar and WebLabel. I want it to be the basis for several pages so I subclass the new pages of my masterPage. I am able to update buttons states on the toolBar on the Super but I am not able to update the label on the Super so all the subclassed pages reflect the changes.

Any light and knowledge would on the best way to update information on all of the subclassed pages would be greatly appreciated. An example using a WebLabel is what I need.

Thanks,

Roibn Colston


I would recommend using a WebContainer that you add to every page instead of subclassing a WebPage.


Top
 Profile  
 
 Post subject: Re: WebPage Subclassing question
PostPosted: Wed May 22, 2013 10:44 am 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
You cannot subclass UI. You subclass code (methods and properties). Once you add UI, you have a kind of an instance. (Not really accurate, but it may be helpful to think in terms of class vs. instance.) Use a Container to share UI between windows.


Top
 Profile  
 
 Post subject: Re: WebPage Subclassing question
PostPosted: Wed May 22, 2013 10:47 am 
Offline

Joined: Sat Sep 15, 2007 10:25 pm
Posts: 13
Thank you both. That helps me understand it better and why it did not work.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group