Real Software Forums
http://forums.realsoftware.com/

WebPage Subclassing question
http://forums.realsoftware.com/viewtopic.php?f=23&t=47939
Page 1 of 1

Author:  Robin Colston [ Tue May 21, 2013 2:39 pm ]
Post subject:  WebPage Subclassing question

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

Author:  neonash7777 [ Wed May 22, 2013 10:12 am ]
Post subject:  Re: WebPage Subclassing question

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.

Author:  timhare [ Wed May 22, 2013 10:44 am ]
Post subject:  Re: WebPage Subclassing question

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.

Author:  Robin Colston [ Wed May 22, 2013 10:47 am ]
Post subject:  Re: WebPage Subclassing question

Thank you both. That helps me understand it better and why it did not work.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/