Tengo un ListView tiene 4 columnas, y tengo que tomar medidas cuando se le da un clic en sólo la primera columna de la vista de lista.
Exemplo + ou - assí.
delphi
if listview.collumn[0].selected then execute algo
Gracias por la ayuda a todos.
Escrito 27 junio 2011 - 05:18
if listview.collumn[0].selected then execute algo
Escrito 28 junio 2011 - 12:13
procedure TForm1.ListView1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin if (X > 0) and (X < ListView1.Columns[0].Width) and (ListView1.GetItemAt(1, Y) <> nil) then Beep; end;
Escrito 28 junio 2011 - 05:32
Escrito 04 julio 2011 - 05:55
Escrito 04 julio 2011 - 06:17
procedure TForm1.ListView1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); begin if (X > 0) and (X < ListView1.Columns[0].Width) and (ListView1.GetItemAt(1, Y) <> nil) then ListView1.Cursor:= crHandPoint else ListView1.Cursor:= crDefault; end;
Escrito 04 julio 2011 - 06:24
Escrito 19 agosto 2011 - 05:44