Jim Hunter wrote:
> There is no need to use qooxdoo at all, simply create a bunch of DIVs
> and give them borders. Placing them in the correct place will give you
> the look of a 'grid' and give you containers to place videos in.
>
> Jim
That is what I did but was wondering if I should or could do it with
some api calls.
I'm using qx.ui.embed.Html(); and setting the size to the size of
the screen, is that a good way to do this?
here is my code actually:
-----------------------------------------------------
var horiz = 1000;
var vert = 700;
var col = 4;
var row = 4;
grid="";
for (i=0;i<horiz;i+=horiz/col)
{
grid +='<div style="position:absolute; top: 0; left:
'+i+'px; width: 2px; height: '+vert+'px; color: black; background:
black;" ></div>\n';
}
grid +='<div style="position:absolute; top: 0; left:
'+horiz+'px; width: 2px; height: '+vert+'px; color: black; background:
black;" ></div>\n';
for (i=0;i<vert;i+=vert/row)
{
grid+='<div style=" position:absolute; top: '+i+'px;
left: 0; width: '+horiz+'px; height: 2px; color: black; background:
black;" >\n</div>'; }
grid+='<div style=" position:absolute; top: '+vert+'px;
left: 0; width: '+horiz+'px; height: 2px; color: black; background:
black;" >\n</div>';
this.debug("grid:"+grid);
var html1 = grid;
//var html1 = "<div style='display: inline; color: red; width: 50px;
height: 100%'>";
var embed1 = new qx.ui.embed.Html(html1);
embed1.setWidth(horiz);
embed1.setHeight(vert);
embed1.setDecorator("main");
foz.add(embed1);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel