Page 1 of 1

Cursor Position

Posted: Wed May 15, 2013 11:19 am
by sgerhardinger
I am trying to get my cursor position in a grid using the return cursor column property and the cursor record number. These values are returned to my program when added pui.click() on the onclick event of an output field. I added the pui.click() on the onmousedown event and the values were not returned. My ultimate goal is to be able to obtain the row/column of the mouse down and the row/column of the mouse up to determine a block in the grid that has been selected. Am I headed in the right direction??

Re: Cursor Position

Posted: Thu May 16, 2013 12:01 pm
by Scott Klement
If you just want to allow rows to be selected, consider using the "row selection" property of the grid. You can use this to allow the user to select one row or multiple rows (depending on the setting). You can then bind a field to the "selection field" property.

When reading the subfile (for example, with READC) the selection field will tell you if a given row has been selected or not.

Is that what you're trying to do? Or do you need to know which columns were selected?