"Drive button icons can be replaced via external DLL&qu

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

"Drive button icons can be replaced via external DLL&qu

Post by *djk »

How to do it: "Drive button icons can be replaced via external DLL" ?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 18-11-2003 13:17:56 +0000 djk wrote:

d> How to do it: "Drive button icons can be replaced via
d> external DLL" ?


Just do it ;).

[Configuration]
drivelib=%COMMANDER_PATH%\drvbmps.dll

You can get drvbmps.dll somewhere on Christian site.[/face]
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Black Dog

Do you know the exact link? Is there any documentation for this feature?
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 18-11-2003 17:41:37 +0000 Lefteous wrote:

L> Do you know the exact link?

Well, take it (just for you, buddy :).

L> Is there any documentation for this feature?

Instructions from Christian:

__________transmission_from_clipboard____________

OK, it's a bit tricky. Here are the instructions:

To replace the drive bitmaps in Total Commander, please do the following:
1. Unpack this 32-bit DLL drivebmp.dll to a directory on your harddisk
2. Change it with a resource editor to your needs. The DLL contains bitmaps,
not icons! Important: The upper left pixel determines the transparent color!
3. Put the following line in your wincmd.ini, section [Configuration]:
drivelib=c:\<path to library>\drvbmps.dll
4. Restart Total Commander

This function requires Total Commander 6.0 or newer!

If you don't have a resource editor, you can send me the images, and I will create the DLL for you. The images need to bitmaps (not icons) of any color depth, size 16x16. The upper left pixel color determines which color is transparent.

Sorry, but Delphi uses such bitmaps for its buttons.

______________end_of_transmission________________[/face]
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Black Dog

Thank you very much!
CoolWater
Power Member
Power Member
Posts: 744
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

can't get it to work :(
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Is there a reason why the example dll contains a lot of string resources?
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 18-11-2003 18:05:18 +0000 Lefteous wrote:

L> Thank you very much!

Any time, buddy.
BTW, talking about bitmaps, what happened with that nice avatar? %)[/face]
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Thanks Black Dog :-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Does anyone have an extended DLL already made up with new drive buttons?
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Here is a library. It just copied some icons from Shell32.dll to the resource dll. Some icons have not been replaced.

drive icons library
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Nice ones :-) Thanks.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Sorry to sound stupid here, but where do these show up?
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

If you have active "Show drive buttons" option (Configuration / Layout) - the icons for the drive buttons are just changed,
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

djk wrote:If you have active "Show drive buttons" option (Configuration / Layout) - the icons for the drive buttons are just changed,
That's what I thought but after downloading this new dll, they look the same as before I installed it. ;)
Post Reply