We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to set it up so I have a slider with two ticks, one value being 0 and the other being 1 but am unsure of how to extract the 0 and 1 int values in the actual code?
public void slider1_change1(GSlider source, GEvent event) { //_CODE_:slider1:298857:
println("slider1 - GSlider event occured " + System.currentTimeMillis()%10000000 );
int a = source.getValue();
} //_CODE_:slider1:298857:
I assume it will be something like this except the getValue() method doesn't work. Thanks.
Answers
getValueI().. worked it out.
getValueI()
// will return the slider position as an integergetValueF()
// will return the slider position as a floating point numbergetValueS()
// will return the slider position as a string (uses precision for number of decimal places)