Hi,
I'm trying to add a button for every row on my datawindow that can be used to expand the results. Now i got this working except I can't seem to find a way to change the button i click to represent that its in expanded mode. So for example, the user clicks the "+" button, and now i want the button to display "-".
What i'm finding is when i change one button, it changes them all
Heres a sample of the code
in the clicked event:
IF Pos( this.GetObjectAtPointer(), "b_test" ) > 0 THEN
if (b_test = '+') then
// Change button to display -
elseif (b_test = '-') then
// change button to display +
end if
END IF
Does anyone know how to reference/change the text of the individual button?
I'm trying to add a button for every row on my datawindow that can be used to expand the results. Now i got this working except I can't seem to find a way to change the button i click to represent that its in expanded mode. So for example, the user clicks the "+" button, and now i want the button to display "-".
What i'm finding is when i change one button, it changes them all
Heres a sample of the code
in the clicked event:
IF Pos( this.GetObjectAtPointer(), "b_test" ) > 0 THEN
if (b_test = '+') then
// Change button to display -
elseif (b_test = '-') then
// change button to display +
end if
END IF
Does anyone know how to reference/change the text of the individual button?