Container resizing with a Custom button ?
Posted: 02 Nov 2015 23:53
Hey folks ! S'been awhile, but I've been able to fly solo for a period of time. Now, I've a manoevre I can't manage which requires some perspective.
I find I'm still kind of inept with the coding of scripts where I don't have a functional example to guide me through. The code I was trying is :
if(firstof(x)==0) {
setobjectrect(cKORE2audioFX, rect[0,273,1022,208]);
}
else {
setobjectrect(cKORE2audioFX, rect[0,81,1022,400]);
}
The button is intended to toggle the container between two different sizes.
I'm probably all screwy, but I know folks here will know better.
Looking forward to your input.
Thanks in advance for your perspective.
Glennzone
I find I'm still kind of inept with the coding of scripts where I don't have a functional example to guide me through. The code I was trying is :
if(firstof(x)==0) {
setobjectrect(cKORE2audioFX, rect[0,273,1022,208]);
}
else {
setobjectrect(cKORE2audioFX, rect[0,81,1022,400]);
}
The button is intended to toggle the container between two different sizes.
I'm probably all screwy, but I know folks here will know better.
Looking forward to your input.
Thanks in advance for your perspective.
Glennzone