|
From: miguel v. c. <muc...@ho...> - 2005-09-27 14:44:34
|
how i can get selected cells in grid ?. i use the function
gridGetSelectedCells (i have selected cells in grid) and then i use
gridCellCoordsArrayGetCount to get the number of cells selected but the
result is nothing (0). i don't know what i have to do or what is what i'm
wrong. thanks
code example :
do {putStrLn ("llega aqui");
coordenadas <- gridGetSelectedCells grid; ( is coordenadas
the selected cells ? )
--columnas_seleccionadas <- gridGetSelectedCols grid;
--filas_seleccionadas <- gridGetSelectedRows grid
numero_celdas <- gridCellCoordsArrayGetCount coordenadas;( number of
selectedcells ?)
--gridClearSelection grid;
--seleccionada <-gridIsInSelection grid 3 3;
p <- gridCellCoordsArrayItem coordenadas 1; ( xy of the
first selected cells ?)
putStrLn (show p) -- ( do exception. why ?)
}
|