View Single Post
Old 01-30-2008, 07:35 PM   #1
argee
Human being with feelings
 
Join Date: Mar 2007
Location: Surrey, BC
Posts: 745
Default sliderchange() - does it work?

I've been trying to use the sliderchange function for a GUI I'm working on, but it doesn't seem to have any effect.

If I display the sliders for testing, when I interact with the GUI using the mouse, I see the sliders move but there is no parameter change for the sound. I've tried it with this function in or out with no success.

Has anyone else used it successfully?

Here's some sample code where I want to use it :

mouse_cap > 0 ? (
mouse_x >= 104 && mouse_x <= 272 && mouse_y >= 23 && mouse_y <= 40 ? (
count=0;
while (
(mouse_x >= 104+count*30 && mouse_x <= 124+count*30) ? (
value=count+1;
done == 0 ? (
slider1 < value ? slider1=value : slider1=value-1;
done=1;
);
);
count += 1;
count < 6;
);
mouse_cap==2 ? slider1 = 2;
sliderchange(slider1);
);
);

The only way I can get things to work is to repeat the applicable '@slider' code in the mouse handling event.
argee is offline   Reply With Quote