Accessing Tristate DzCheckBox
kabexef
Posts: 76
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!
Comments
Looks like it was a bug, fix just posted in the unreleased changelog
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/change_log#4_14_1_19
Yes, thank you.