After showing the changed contents of a LISTBOX using
REFRESH-OBJECT LB-MYLIST
I need to show that a certain row is the default value (selected item) To make this I use
SET-LIST-ITEM-STATE LB-MYLIST 1 1
After executing this statement the row appears in blue. This looks quite good and is what I need.
But also the condition ITEM-SELECTED associated with the LB is activated.
How can I avoid that, because ITEM-SELECTED (and ITEM-ACCEPTED) shall only be executed if the operator really selects an item with the mouse and not by the SET-LIST-ITEM
Is using a different value than 1 in SET-LIST-ITEM-STATE a solution? Which value must I use in order to only highligh the row?
Thanks for any help. Rolf
#LISTBOXDIALOG-SYSTEM