Author Topic: ListBox  (Read 253 times)

Moshe-A

  • Member
  • *
  • Posts: 14
ListBox
« 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
 

owenwengerd

  • Administrator
  • Hero Member
  • *****
  • Posts: 3021
    • Outside The Box
Re: ListBox
« Reply #1 on: September 28, 2020, 02:45:27 PM »
I think (dcl-ListBox-SetAnchorIndex <CONTROL> -1) should work.

Moshe-A

  • Member
  • *
  • Posts: 14
Re: ListBox
« Reply #2 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

Moshe-A

  • Member
  • *
  • Posts: 14
Re: ListBox
« Reply #3 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