Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datawindow Buttons

Status
Not open for further replies.

Greener73

Programmer
Jun 13, 2008
8
0
0
CA
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?




 
Can you use two different buttons and a hidden computed field? Say b_more and b_less. Base their visibility on a computed field that determines whether the row is showing the expanded version or the short version.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top