🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Jeff Thu, 21 Jun 2007 18:43
TDirectoryListBox Icons
#1719
Author: Jeff
Date: Thu, 21 Jun 2007 18:43
4 lines
992 bytes
Anyone know how to change the icons in a TDirectoryListBox?

Thanks,
Jeff 
Re: TDirectoryListBox Icons
#1720
Author: Remy Lebeau (TeamB)
Date: Thu, 21 Jun 2007 19:00
18 lines
1632 bytes
"Jeff" <Jeff@nospam.com> wrote in message
news:467ac723$1@newsgroups.borland.com...

> Anyone know how to change the icons in a TDirectoryListBox?

Derive a new component and override the virtual ReadBitmaps() method.
The default implementation allocates and initializes the OpenedBMP,
ClosedBMP, and CurrentBMP members from the application's resources.
You can change that to initialize them any way you wish.

With that said, I don't really suggest that you continue using
TDirectoryListBox.  It is a very old component and doesn't look good
in modern UIs.  There are plenty of third-party replacements that have
modern looks and have more functionality.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads