Am Samstag, 30. August 2008 16:24:43 schrieb Ed Leafe: > > If you want to append/insert a basic page and get back a reference to > that page, then call pgf.appendPage() or pgf.insertPage(pos). If you > have your own custom page class that you want to use, pass that class > to these methods. The pageframe will use the dPage class if you don't > specify a class. >
So pgf.appendPage() returns a reference to the new page? That's something the documentation doesn't say, but should say, I think. Or did I overlook it? > Another case: let's say you have instantiated a page object, and now > want to add it to an existing pageframe. You still use > pgf.appendPage(pgObj) or pgf.insertPage(pos, pgObj). As long as your > page object is an instance of dPage or any class based on dPage, the > framework will recognize that and simply append/insert the page object. > This is something I should know by now, but too much Delphi and C# seems to get in the way: that I can use an instance _or_ a class as argument to a method. > Finally, if you have a custom page that you want all of your pages > based upon, set the PageClass property of the pageframe to your custom > class, and when the pageframe adds a page, it will use that class. > > I can see how all these options can be confusing, but in this case, I > think the flexibility is worth it. > Not confusing at all, if it's explained like this. Wouldn't it be quite a good Wiki page? Thank you very much, Sibylle -- Dr. Sibylle Koczian _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
