Hello,
within my ULP I am populating a dlgCell with dlgPushButtons from a String-Array like this:
dlgGridLayout {
int rows = 0;
int cols = 0;
while (SpecialObjects[countObjects]) {
dlgCell(rows, cols) dlgPushButton(SpecialObjects[countObjects]) {
... // <- reference to this pushbutton object needed here
};
cols++;
if (cols == 13) {
cols = 0;
rows++;
}
++countObjects;
}
I need to find a way to figure out, which button the user pressed, a.k.a. have a way to reference the Pushbutton object.
Any references to the indices used for the generation of the Pushbuttons will not be evaluated during the generation of the Pushbuttons, e.g. something like
int a = 0;
int b = 0;
int c = 0;
dlgCell(rows, cols) dlgPushButton(SpecialObjects[countObjects]) {
a = countObjects;
b = rows;
c = cols;
};
will result in every Pushbutton containing the same values for the variables a,b,c (example).
Any help is greatly appreciated!