jsui border color
Hi,
This jsui is very cool to design custom controls.
Thanks !
Any way to change the "border" color of a JSUI ?
Salvator
On Dec 28, 2007, at 3:20 AM, Salvator wrote:
> Any way to change the "border" color of a JSUI ?
You can always turn border off and draw your own border within the
JSUI code.
-Joshua
HI Joshua,
Thanks, I finally got something working.
function draw()
{
var width = box.rect[2] - box.rect[0];
var height = box.rect[3] - box.rect[1];
var aspect = width/height;
with (sketch) {
glclearcolor(myfrgb);// bg (color)
glclear(); // kind of background
glcolor(0,0,0); // FILL COLOR
plane(aspect*0.98,0.90); // "FILL PLANE
}
}
Though I'm a bit lost with those coordinate (+/-aspect & +/-1) and doing a plane by using percentage of the aspect and +/-1 value only work for certain resize (the horizontal and vertical border sometimes is not the same, depending of the sizebox).
So I would prefer to have a value in pixel that is constant for both horizontal and vertical.
Should I plunge into learning "sceentoworkld" and the like ?
Should I use line drawing instad of plane ?
Thanks,
Salvator