How convert CCButton in a Toggle Switch?

Thanks Pieter, CCButtonLatched Class worked i when updated library.

Another question, How a rotary encoder cans incrementing 1 value at time? (1,2,3 ... 127) and not 0-127?
Rotary encoder with the library works fine with reaper´s mapping, but externals vst not, the values ​​(knobs) goes bottom at top.

thanks