How do I go about recalling a method from an event
Posted: Mon Nov 04, 2019 10:13 am
Hello
Sorry, I confess I have some difficulty with object-oriented programming
If instead of using the function:
operativeModePres = function () {
......
I use the method:
OrthogonalProjections.prototype.operativeModePres = function () {
As I have to do to recall this method from an event I tried a few ways but it does not go:
// operativeMode ['currentIndexChanged (int)']. connect (function () {operativeModePres ();});
// operativeMode ['currentIndexChanged (int)']. connect (function () {this.operativeModePres;});
operativeMode ['currentIndexChanged (int)']. connect (function () {operativeModePres.call (operativeModePres);});
Sorry, I confess I have some difficulty with object-oriented programming
If instead of using the function:
operativeModePres = function () {
......
I use the method:
OrthogonalProjections.prototype.operativeModePres = function () {
As I have to do to recall this method from an event I tried a few ways but it does not go:
// operativeMode ['currentIndexChanged (int)']. connect (function () {operativeModePres ();});
// operativeMode ['currentIndexChanged (int)']. connect (function () {this.operativeModePres;});
operativeMode ['currentIndexChanged (int)']. connect (function () {operativeModePres.call (operativeModePres);});