OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: garcigj on October 06, 2008, 07:39:41 AM

Title: ListView Problems (3)
Post by: garcigj on October 06, 2008, 07:39:41 AM
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?
Title: Re: ListView Problems (3)
Post by: Fred Tomke on October 06, 2008, 07:54:09 AM
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
Title: Re: ListView Problems (3)
Post by: garcigj on October 06, 2008, 08:08:02 AM
OK. Thanks Fred
We hope to version 26..
Title: Re: ListView Problems (3)
Post by: Fred Tomke on October 15, 2008, 02:25:43 AM
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
Title: Re: ListView Problems (3)
Post by: garcigj on October 15, 2008, 04:35:16 AM
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?