buenas noches.

estoy tratando de hacer una aplicacion con el listview de manera que cuando
se haga click en una celda esta cambie de color. el siguiente codigo lo
hace, pero me cambia el color de ambas celdas. espero me puedan ayudar.

PUBLIC SUB Form_Open()

TableView1.Columns.Count = 4
TableView1.Rows.Count = 4
TableView1.Columns[0].Width = 32
TableView1.Columns[1].Width = 136
TableView1.Columns[2].Width = 236
TableView1[0, 2].BackColor = &00C000&

END

PUBLIC SUB TableView1_Click()
'aqui se supone que si hago clic en la celda [0,2] le debe cambiar el color
IF TableView1[0, 2] THEN
  TableView1[0, 2].BackColor = &0000FF&
ENDIF
IF TableView1[0, 2] THEN
  TableView1[0, 1].BackColor = &FFFF00&
ENDIF

END

-- 
フリオ
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to