ā2021-11-16 10:55 PM - edited ā2021-11-16 10:57 PM
Hello,
I am making a trace dialog that outputs trace level, location in code and a custom message. It consists of a listbox and some checkboxes:
When a checkbox is unchecked items with that trace level should not be displayed in the listbox:
(The abnormal trace is removed in the above picture)
My problem is that it also removes every item that comes after the removed item (in the above case the removed trace was already last so the bug is not noticed). Unchecking debug removes the error and abnormal trace aswell:
Which is unwanted. Only the debug trace should be removed.
What i do in the code is pretty simple right now: When the value of a checkbox is changed i clear the listbox and populate it again based on the value of the checkboxes. So if for example the trace level is info but that checkbox is unchecked that item won't be appended to the listbox:
I am pretty confident that the logic in the loop is OK but i am not 100%. Any help is appretiated.
Solved! Go to Solution.
ā2021-11-17 07:40 AM
Also, insted index of list item, you can use DG::ListBox::BottomItem.
Like:
listBox.SetTabItemText( DG::ListBox::BottomItem, Teb::.....)
ā2021-11-17 02:19 AM
Hi,Maybe this can help you.
ā2021-11-17 07:40 AM
Also, insted index of list item, you can use DG::ListBox::BottomItem.
Like:
listBox.SetTabItemText( DG::ListBox::BottomItem, Teb::.....)
ā2021-11-18 10:16 PM - edited ā2021-11-18 10:18 PM
Thanks so much, now the error is obvious. I was setting the text on indexes that was not even rendered..
ā2021-11-18 10:19 PM
Thanks, i think this is the cleaner way.