Link to home
Start Free TrialLog in
Avatar of idok
idok

asked on

TListview Icons missing

I have an app with a TListview I add items to it and connect it to a TImageList using each item's ImageIndex property. I can see the icons nicely at the design time and even on run time on my computer and other computers.

Now comes the bad part - on some computers I am unable to see the TListView icons and only the text appears. The items _do_ get "hottrack'ed" when the moust pointer is over the place where the icon should've been.

What's that?!
ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of idok
idok

ASKER

Yes, my customer's computers are old (Pentium/133) and running old win95.

I sent the file to my customer, I'll check with him if it fixes the problem - if it does - you get the points.

Others - you can still offer solutions.
how about re-compile the project without optimizing code?
Avatar of idok

ASKER

What's delphi optimizations got to do with missing icons?
I have an experience to solve same case like you:
I just remember that I uncheck [Compiler-CodeGeneration-Optimaze] & [Packages- Build with RunTime Packages] in the [Project-Options] and it works.

Actually, I doesn't know what it did totally.
anyway as you have said it is on win95 i am quite positive it is because the version of commctrl dll does not support this.i have this problem several times before.the update will fix im sure.let me know how it goes.


optimizations ..sure it was for icons missing ?
it is so strange.
we have 1 program running on win95/98 (some 95, some 98).
one day, some users report why the layout of his program[some nice icon are missing] is different from his neighbour.
we check the history of program-upgrade and found the size of current delivery is smaller than that if pre-version.
note: if we run the pre-version on the platform that has problem, it is ok!
.....
Finally, we try to uncheck [Compiler-CodeGeneration-Optimaze] & [Packages- Build with RunTime Packages] in the [Project-Options] and the generated executable file regress and it works for all clients' platform.

is it strange? we have not time to study the reason but it solved.
Avatar of idok

ASKER

inthe - you were right from the beginning, I got a call from my customer saying the COMCTRL upgrade solved the problem!

Thanks a lot!

others: There's nothing wrong with the optimizations of Delphi.