On Thu, Jan 19, 2012 at 06:30, Vladimir Lipets <[email protected]> wrote:

> Hi Robert,
>
> thank you for this response.
>
> We checked out SVG, it seems that it is to much for our case.
> We just need an ability do draw colored rectangles.
>
> Now we are checking out the approach, based on ... creation of colored
> widgets.
> Similarly to this example:
>
> http://demo.qooxdoo.org/1.3/demobrowser/#layout~Basic.html
> I'm not sure that it is a "best practice", but it works well.
>

The simplest way to do is is exactly as done, in that demo. It uses the
"backgroundColor" property of widgets, which can be used with any widget.
The only thing you really need to be careful of is that many widgets use
decorators that completely fill the widget, so the background is covered.

For drawing simple colored rectangles, unless you have a large number of
them, the method is simple and reasonably efficient, using the DOM's "div"
elements.

Derrell
------------------------------------------------------------------------------
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

Reply via email to