New OpenDCL Forums
OpenDCL => Runtime/AutoLISP => Topic started 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
-
I think (dcl-ListBox-SetAnchorIndex (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/ListBox/SetAnchorIndex.htm) <CONTROL> -1) should work.
-
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
-
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