From: Andy T. <an...@ha...> - 2005-04-19 11:08:26
|
Michael Sorich wrote: > The topic of platform-specific resource files made me > wonder whether it is possible for a resource file to > inherit from another resource file. If the differences > between platform specific resources are relatively > minor, I would think it would be simpler to inherit > from a base resource and only include the components > and properties to be changed. > I'll leave someone more qualified to comment on that. > On a different topic, could someone remind me of the > reasons why components are accessed from > self.components rather than self? > E.g. self.components.button1 vs. self.button1 > If I allowed self to lookup self.components would this > cause a problem with the program? I think I remember > there being some discussion on this in the past, but I > cannot find it in the archive. > It's to differentiate them from the other properties a background may have. Essentially the components (as a set) are children of the background and not first class attributes, which it's name, title and size (for instance) are. > Thanks, > > Michael > [snip] Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |