Solved

TListview Icons missing

Posted on 2000-03-06
8
241 Views
Last Modified: 2010-04-04
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?!
0
Comment
Question by:idok
  • 3
  • 3
  • 2
8 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 2588427
Hi
is it possible that these computers are old maybe(runiing early version of win95 )
could try updating there commctrl.dll see if that fix it.

http://download.microsoft.com/download/platformsdk/Comctl32/5.80.2614.3600/W9XNT4/EN-US/50comupd.exe
0
 

Author Comment

by:idok
ID: 2588507
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.
0
 
LVL 1

Expert Comment

by:yk030299
ID: 2589886
how about re-compile the project without optimizing code?
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

Author Comment

by:idok
ID: 2592974
What's delphi optimizations got to do with missing icons?
0
 
LVL 1

Expert Comment

by:yk030299
ID: 2594196
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.
0
 
LVL 17

Expert Comment

by:inthe
ID: 2594941
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 ?
0
 
LVL 1

Expert Comment

by:yk030299
ID: 2598809
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.
0
 

Author Comment

by:idok
ID: 2613902
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.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question