OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Moshe-A on September 28, 2020, 01:16:46 AM

Title: ListBox
Post by: Moshe-A on September 28, 2020, 01:16:46 AM
Guys Hi,

in ListBox, if user make a faulty item selection i (dcl_MessageBox) to alert. after the message is cleared, if it's the first time after form Initialized
i deselect the item with (dcl-ListBox-SetCurSel <CONTROL> -1) i also would like to clear the Anchor (the dotted rectangle around the selected item)?

How?

thanks in advance
Moshe
Title: Re: ListBox
Post by: owenwengerd on September 28, 2020, 02:45:27 PM
I think (dcl-ListBox-SetAnchorIndex (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/ListBox/SetAnchorIndex.htm) <CONTROL> -1) should work.
Title: Re: ListBox
Post by: Moshe-A on September 29, 2020, 01:38:13 AM
Owen

thanks you

i did  try that even (dcl-ListBox-SetFocusIndex <CONTROL> -1)  and it did not work for me
i now at work, so i'll give it another try tonight

Moshe
Title: Re: ListBox
Post by: Moshe-A on September 29, 2020, 12:16:57 PM
Owen hi,

Some how the problem is gone with (dcl-ListBox-SetCurSel <CONTROL> -1) and i did not change anything
hope it will stay  :)

Moshe