Hi Fritz,
Here is part of what I have. I've taken them from a couple different
examples and trying to piece them together since I haven't been able to find a
single example; likely I've got something not quite right.
Application.js:
var page5 = new h4.view.Twitter("Twitter");
tabView.add(page5);
Also tried:
tabView.add(new h4.view.Twitter);
Also tried:
tabView.add(new h4.view.Twitter("Twitter"));
Twitter.js:
qx.Class.define("h4.view.Twitter",
{
extend : qx.ui.tabview.Page,
construct : function()
{
this.base(arguments, "twitter");
// hide the window buttons
this.setShowClose(false);
this.setShowMaximize(false);
this.setShowMinimize(false);
// adjust size
this.setWidth(250);
this.setHeight(300);
}
});
So, it is a problem with how I'm calling the "Twitter" page file, or something
in the page file itself?
Thanks,
Harlan...
----- Original Message -----
From: "Fritz Zaucker" <[email protected]>
To: "Harlan H. Bloom" <[email protected]>, "qooxdoo Development"
<[email protected]>
Sent: Thursday, February 2, 2012 1:10:54 AM
Subject: Re: [qooxdoo-devel] Pages in separate files/classes for TabView
Harlan,
you can just extend qx.ui.tabview
qx.Class.define("my.tabviewPage", {
extend : qx.ui.tabview.Page,
...
...
});
and then in your TabView class do
this.add(new my.tabview.Page);
Cheers,
Fritz
On Wed, 1 Feb 2012, Harlan H. Bloom wrote:
> Hello,
> I'm trying to use TabView and to define the pages in separate files/classes.
> The only examples I've seen are where the pages are in-line with the TabView.
>
>
> Anyone have any idea where I can find an example where the TabView is
> separate from its pages?
>
>
> Thanks,
>
>
> Harlan...
>
>
--
Oetiker+Partner AG tel: +41 62 775 9903 (direct)
Fritz Zaucker +41 62 775 9900 (switch board)
Aarweg 15 +41 79 675 0630 (mobile)
CH-4600 Olten fax: +41 62 775 9905
Schweiz web: www.oetiker.ch
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel