As a newbie here myself, I struggled with the same issue.  I found myself
usually starting by extending other layout objects (see qx.ui.layout.*).
Here is a simple example of an object (I’m sure the smarter people on this
list will have much better examples):

qx.Class.define("foo.SimpleLayoutWithTabView",
{
  extend : qx.ui.layout.CanvasLayout,

  construct : function()
  {
    this.base(arguments);
    this._tabView = new qx.ui.pageview.tabview.TabView;
    this.add(this._tabView);
    this._tabView.set({ top: 30, bottom: 0, width: "100%"});
  },
  destruct : function() {
    this._disposeObjects("_tabView");
  }
});

________________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Hunter
Sent: Saturday, April 14, 2007 1:49 PM
To: [EMAIL PROTECTED]; qooxdoo Development
Subject: Re: [qooxdoo-devel] Custom Widgets

You do not have a 'canvas' in qooxdoo right now. There is no way to 'paint'
points and lines. There is a graphics package by Walter Zorn that can be
used together with qooxdoo to be able to do lines and shapes, give that a
look. 

As for what to subclass from, that depends on what you want to create.
Choose the control that is closest to what you want to create and start from
there. When in doubt, start from the base Object and work up.

Jim Hunter
D4PHP.ORG


On 4/14/07, Manuel Bender <[EMAIL PROTECTED] > wrote:
I want to develop some new wigets but im not sure whats the best way to 
start....

Which class shall i extend as base class when i need to paint own graphics?

How can i paint lines, points and so for that widget (so that i can
paint things like a progress bar and so on)?

Is there something similar than the graphics api in java?

Hope someone has an idea....

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express 
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/ 
_______________________________________________
qooxdoo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.2.0/756 - Release Date: 4/10/2007
10:44 PM

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.2.0/756 - Release Date: 4/10/2007
10:44 PM
 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to