Troubleshooting
Container resizing with a Custom button ?
Started by Glennzone on .
Sign in or create an account to join the conversation.
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
Test_Container_resize.jzml
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
Test_Container_resize.jzml
I've done such things before, and looking at the code it should work.
I don't know right now where the problem lies, but it surely is only a typo or some other minor error. Try again with other means (for example with several if's).
I don't know right now where the problem lies, but it surely is only a typo or some other minor error. Try again with other means (for example with several if's).
I found it by looking at some other code. . . .
Stupid computers don't recognize spelling errors >?! :=D
"if(x==0) {
setobjectrect(cKORE2audioFX,{0,273,1022,208});
}
else {
setobjectrect(cKORE2audioFX,{0,81,1022,400});
}"
Thanks Phil.
Stupid computers don't recognize spelling errors >?! :=D
"if(x==0) {
setobjectrect(cKORE2audioFX,{0,273,1022,208});
}
else {
setobjectrect(cKORE2audioFX,{0,81,1022,400});
}"
Thanks Phil.
good that you found the solution.