OpenDCL Version 5.0.0.25 ENU
ListView Problems:
Modal Form
Event: Clicked
Example:
c: 2DrawArch_MemCarp_ListView1_OnClicked (nRow nCol / ..)
(print nRow) (princ "-") (princ nCol) (Prince)
)
Click in row 2 column 0 = 0 - 0
Click in row 2 column 1 = 1 - 0
Click in row 2 column 2 = 2 - 0
nRow is the column?
nCol is always 0?
Is this a BUG?
¿Solution?
(setq nRow (dcl_ListView_GetCurSel 2DrawArch_MemCarp_ListView1))
and nCol?
Hello this a bug which was introduced in Alpha 25.
See here (http://sourceforge.net/tracker/index.php?func=detail&aid=2126493&group_id=187950&atid=923363).
Fred
OK. Thanks Fred
We hope to version 26..
Hello,
Wolfgang and me thought about a workaround for this issue until next release will come:
Use dcl_listview_getcursel within the OnClicked event function to get the selected line or use hitpointtext method.
Later you can remove this workaround.
Fred
OK. Thanks Fred
Quote from: garcigj on October 06, 2008, 07:39:41 AM
........
Is this a BUG?
¿Solution?
(setq nRow (dcl_ListView_GetCurSel 2DrawArch_MemCarp_ListView1))
and nCol?