ListView Problems (3)

Started by garcigj, October 06, 2008, 07:39:41 AM

Previous topic - Next topic

garcigj

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?
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

Fred Tomke

Hello this a bug which was introduced in Alpha 25.
See here.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

garcigj

OK. Thanks Fred
We hope to version 26..
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

garcigj

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?
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)