author=stephan_35 link=topic=1088.msg5751#msg5751 date=1260957797 wrote:
I send some parameters like filter, default text, to customise them.
Stephan, I know what you mean, I did it too in the old ObjectDCL with listviews when it was not possible to change the selection style from single to multiple at runtime. For that case I draw two identical listviews (with the exception of this only property), even with the same events and generic event function names for both. In the OnInitialize event I wrote
(if isMultipleSelection
(progn
(dcl_control_setVisible MyProj_MyForm_LstSingle nil)
(setq oListViewControl MyProj_MyForm_LstMultiple)
); progn
(progn
(dcl_control_setVisible MyProj_MyForm_LstMultiple nil)
(setq oListViewControl MyProj_MyForm_LstSingle)
); progn
); if
(dcl_control_setvisible oListViewControl T)
And I go on accessing the right listview using the variable oListViewControl.
Fred