[javascript-dev] Bpatcher resizing
gusanomaxlist
gusanomaxlist at googlemail.com
Sat Jul 28 13:32:11 MDT 2007
- Previous message: [javascript-dev] access to ftm objects from javascript?
- Next message: [javascript-dev] Re: Bpatcher resizing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi !
I'm trying to resize a Bpatcher with "this.patcher.box.rect", but I can't find how to add/substract a value to one of the existing coordinates (here to the vertical right one).
I have a toggle going in a message [size $1] going in js object.
Here is the code (please, forgive my javascript newbieness) :
---------------------------------------
function size(x)
{
r = this.patcher.box.rect;
if (x > 0)
r[3] = (r[3] + 100);
else
r[3] = (r[3] - 100);
}
---------------------------------------
Thanx for your advices.
- Previous message: [javascript-dev] access to ftm objects from javascript?
- Next message: [javascript-dev] Re: Bpatcher resizing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
