English 中文(简体)
如何改变在德尔菲的TListView中的形象?
原标题:How to change the way selection is drawn on a image in a TListView in Delphi?

I load icons from exe/dll/ico and I display them in a TListView set to vsIcon. The images are stored in a TImageList set as TListView.LargeImages. So each item in TListView is an image + a small text below. The user selects one or more and clicks on a button. The problem is that the selection of the images looks "ugly":

“1”/

在你选择一个捷径时,我想像 desktop一样:

2

But I need that TListView to have the same "behavior" in other situations. I say this because I know that using OnCustomDraw events is generating problems in other "areas". And since the images are available only at runtime I can t store them in resources as "selected". But I think I can "double" the images from TImageList, if it s necessary.

Is it possible..? Thank you.

PS: I use Delphi 7.

问题回答

暂无回答




相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签