cp5 - toggle Listener triggered by constructor with .setState
in
Contributed Library Questions
•
7 months ago
me and cp5 are getting closer every day.
at the moment i work on a program where i have several interface-objects constructed inside the listener of another object.
i also have listeners for the objects yet to be constructed. and what is happening is this: everytime I e.g. press the "toggle" to construct "another_toggle", the listener "void another_toggle()" is triggered because of the .setState() method I had to include into the constructor cause I want the checkbox to start with another than than the default boolean (in this case true instead of false).
aint a big problem for i can filter that out. but maybe this effect is known and sb. knows an easy way around it? another way to change the default State of an Toggle?
thx n love
1