ListBox

Started by Moshe-A · 2020-09-28 08:16 UTC · 3 replies · SMF topic #2741

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 -1) i also would like to clear the Anchor (the dotted rectangle around the selected item)?

How?

thanks in advance
Moshe
I think ({2} -1) should work.
Owen

thanks you

i did  try that even (dcl-ListBox-SetFocusIndex -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 -1) and i did not change anything
hope it will stay  :)

Moshe