Hi, im trying to access (get and set) the state of a tristate DzCheckBox but nothing will work (see sample code).
var cb = new DzCheckBox(wDialog);
cb.tristate = true;
cb.stateChanged.connect(cbChanged); // is not triggered
cb['stateChanged(int)'].connect(cbChanged); // is not triggered
function cbChanged(nState) {
print("nState = " + nState);
}
cb.toggled.connect(cbToggled); // delivers only yes or no - not partially checked
function cbToggled(bState) {
print("cb.toggled = " + bState);
}
cb.released.connect(cbReleased);
function cbReleased() {
// which attribute to check ???
// print("??? = " + cb.???);
}
Has anyone any idea to master this? Thanks!