Here's my code:
But this does not work!
Who has a solution or idea.
var
i: Integer;
begin
if (listbox1.ItemIndex < > -1) and (listbox1.ItemIndex < ImageEnVect1.ObjectsCount) then
begin
for i: = 0 to ImageEnVect1.ObjectsCount - 1 do
begin
if (ImageEnVect1.ObjText [i] = '' + listbox1.Items [listbox1.ItemIndex] + '') then
begin
ImageEnVect1.SelObjects [i];
Exit;
end;
end;
end;
end;
jm