views:

114

answers:

3

Hi, Im looking for a delphi component that looks and functions like the Windows 7 control panel buttons when you "view by category". Anybody know if something like this already exists?

alt text

A: 

That is part of the Windows shell. It looks like these components wrap the windows shell functionality.

Jeroen Pluimers
I downloaded the JAM software component demos but they did not provide the functionality that I need.
Delphiguy
+1  A: 

I guess this is a customized ListView with activated Tile View.

See "About List-View Controls" on MSDN.

splash
You are right. It does look like a listView in Tile view, I did not even notice it before.
Delphiguy
+6  A: 
Andreas Rejbrand
Exactly what I needed! Thank you.
Delphiguy
@Andreas: Good job!
splash
@splash: Thanks!
Andreas Rejbrand
Where can I get PNGImage? Looks like there is a licensing problem?
Delphiguy
If I recall correctly, PNGImage was added in Delphi 2009. What version of Delphi are you running?
Andreas Rejbrand
Delphi 7 Professional
Delphiguy
I found PngImage 1.56 by Gustavo. Gustavo's main PNG object is named TPngObject and CodeGear's class is named TPngImage in delphi 2009. I tried changing your code to use PngObject instead, but after installing your component it is still not working in Delphi 7. Any help would be greatly appreciated!
Delphiguy
I have no idea about how `TPngObject` is working, but it probably should work (what else would the class be for? :) ). Also, theming support, in particular, the UxTheme unit, didn't exist in Delphi 7. But that is only a minor problem, because it only contained the signatures of functions in Windows API. You can use these functions without this unit. If you want your application to be compatible with older versions of Windows (such as XP), you should call these functions via `LoadLibrary` and `GetProcAddress`. This is standard procedures, so there should be a lot of sites explaining this in a
Andreas Rejbrand
...general context.
Andreas Rejbrand