TheSwamp
Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: It's Alive! on June 05, 2007, 01:58:30 PM
-
This method will force an entire row to be selected and will also scroll the Grid to ensure the row is visible.
Pass in a -1 if you wish to deselect the current selection.
But the "scroll the Grid to ensure the row is visible" part doesnt want to work for me
-
Dan, Can you post this as a bug at Sourceforge ( with a sample ODC and LSP )
-
Dan, Can you post this as a bug at Sourceforge ( with a sample ODC and LSP )
I can do that :-)
Thanks
-
Daniel,
I added a button and defined an Event Handler ;
Note that I've used the row as (GetRowCount less 1)
(DEFUN c:DwgProp_FormDwp_SelectCurrentRow_OnClicked (/)
(ALERT (ITOA (ODCL_GRID_GETROWCOUNT DwgProp_FormDwp_GridProp)))
(ODCL_GRID_SELCURROW
DwgProp_FormDwp_GridProp
(- (ODCL_GRID_GETROWCOUNT DwgProp_FormDwp_GridProp) 1)
)
)
.. and changing the offending line in c:DwgProp_FormDwp_ButtonAddItem_OnClicked seems to work
;;(ODCL_GRID_SELCURROW DwgProp_FormDwp_GridProp (1+ nRow))
;<- Bug? <<<<<<<<
(ODCL_GRID_SELCURROW DwgProp_FormDwp_GridProp nRow)
added:
So the issue is that the row count is Zero based , { I think }
PS added:
BTW, nice code :-)
-
That fixed it. So it wasn’t a bug , but my lack of ODCL knowledge and a lack of good coffee
Thanks a ton Kerry
-
No Worries :-) you're welcome.
I'll add a note to the Report that it's resolved and point back here.