10-25-2018, 03:37 AM
(10-24-2018, 04:28 AM)joel Wrote: I am adding an image to the tiwtreeview and since upgrading from iw14 now the treeview has double icons.
This is the code
ItemImages.DocumentImage.Url :=
DU.ImageLocation.WdImageUrl+'icon_user16x16.jpg';
I investigated deeper and find that the issue is that both of the openFolderImage.Url and the ClosedFolderImage.Url are displayed at the same time.
and it just happens at the very top level
I am using this code to create the treeview
with iwtvUser.Items.Add do
begin
tvUser := iwtvUser.Items.Items[index];
Expanded := true;
ItemImages.OpenFolderImage.Url :=
DU.ImageLocation.WdImageUrl+'icon_user16x16.jpg';
ItemImages.ClosedFolderImage.Url :=
DU.ImageLocation.WdImageUrl+'icon_user16x16.jpg';
end;

