I'm trying to remove the gap between the normal-icon and the arrow(collapse/expand) icon of a treeView item. If I don't set the state-icon, there appears a blank space creating a gap. I tried setting a state-icon and then setting its size to zero, but that did not help.
treeView.SetItemStateIcon(treeItemIndex, DG::Icon (ACAPI_GetOwnResModule(), (short) DashIconId)); treeView.SetStateIconSize(0, 0); // omit state icon by setting its size to zero
How can I avoid the state-icon and get rid of that blank space?
Solved! Go to Solution.