Customizing the default Bind Script icons?
Moderator: Kathy_9
Customizing the default Bind Script icons?
I was looking the other day for the location PSP keeps its UI icons in our hard-disk. They are repeated in multiple folders, and they also have small and large versions, along with color and monochrome versions. However, I didn't manage to find the Bind Script default icons: http://prntscr.com/s2gy6j
Are they stored in a .dll file or something?
I am kinda sick of all my bound scripts having the same icons, and I'd like to replace some of them with meaningful ones I'll make. The "User defined icon" option in the customize Button Apperance dialog always stays disabled for me, no matter where I place the script onto (toolbar or menu).
If anyone knows, please share. Goggle didn't help.
Thanks!
Are they stored in a .dll file or something?
I am kinda sick of all my bound scripts having the same icons, and I'd like to replace some of them with meaningful ones I'll make. The "User defined icon" option in the customize Button Apperance dialog always stays disabled for me, no matter where I place the script onto (toolbar or menu).
If anyone knows, please share. Goggle didn't help.
Thanks!
Good Unofficial PaintShop Pro Tutorials: Creation Cassel • Make Shop Pro • HEC Image Editing • LeviFiction PSP Basics
(plus my own Gimp & Stuff)
(plus my own Gimp & Stuff)
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Customizing the default Bind Script icons?
PSP specifically uses a cached version when loading the UI. I don't know where they are originally stored. There was a big discussion on the forums here about the cached file and editing it to let us customize the icons. Though I don't remember how long ago. Or who all was involved. The cache is stored as a BMP, but it requires support for BMP Transparency editing which PSP does not support so we had to use a different editor.
I honestly don't remember a lot from the conversation.
I honestly don't remember a lot from the conversation.
https://levifiction.wordpress.com/
Re: Customizing the default Bind Script icons?
Thanks for the reply Levi!
I have found them in the following folders:
C:\Program Files\Corel\Corel PaintShop Pro XXXX (64-bit)\Data\X1
C:\Program Files\Corel\Corel PaintShop Pro XXXX (64-bit)\Data\X2
C:\Program Files (x86)\Corel\Corel PaintShop Pro XXXX\Data\X1
C:\Program Files (x86)\Corel\Corel PaintShop Pro XXXX\Data\X2
But the bind-script icons are not there.
The cache files are all stored in:
C:\Users\SUser\AppData\Local\Corel PaintShop Pro
for each version separately too (x86 and x64). There are some cached icon files in there, but I have no idea how to read them. But if they are cached, there must be an original location they got cached from.
I have found them in the following folders:
C:\Program Files\Corel\Corel PaintShop Pro XXXX (64-bit)\Data\X1
C:\Program Files\Corel\Corel PaintShop Pro XXXX (64-bit)\Data\X2
C:\Program Files (x86)\Corel\Corel PaintShop Pro XXXX\Data\X1
C:\Program Files (x86)\Corel\Corel PaintShop Pro XXXX\Data\X2
But the bind-script icons are not there.
The cache files are all stored in:
C:\Users\SUser\AppData\Local\Corel PaintShop Pro
for each version separately too (x86 and x64). There are some cached icon files in there, but I have no idea how to read them. But if they are cached, there must be an original location they got cached from.
Good Unofficial PaintShop Pro Tutorials: Creation Cassel • Make Shop Pro • HEC Image Editing • LeviFiction PSP Basics
(plus my own Gimp & Stuff)
(plus my own Gimp & Stuff)
-
JoeB
- Posts: 2778
- Joined: Fri Mar 28, 2008 10:04 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: LENOVO 4524PE4 ThinkCentre M91p
- processor: 3.10 gigahertz Intel Quad Core i5-2400
- ram: 8 GB
- Hard_Drive_Capacity: 4.6 TB
- Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
- Location: Canada
Re: Customizing the default Bind Script icons?
@Levifiction is correct in that there was a lengthy discussion about customizing bound script icons quite a long time ago - several years probably and I also don't remember a lot about it now. But I do remember that we found the .dll where the icons are stored, and then could open it with an icon editor. It then took some time to locate the correct specific icon one wanted to edit. I believe there are 2 or 3 different sizes for many/most of those icons to accommodate PSP's ability to have larger icons or smaller icons depending on preference.
At the time, and with an earlier version of PSP, I actually did edit several icons to use as bound scripts, saved them and it did work to an extent. However, it was - for me at least - quite a project and I finally didn't bother with doing it any more. And I think I recall that keeping track of which icons were edited wasn't easy because the window from which you select icons didn't properly update to show my edited icons - I had to keep notes of which specific icon in the row of default icons was the one I had edited for a specific script because the actual edit doesn't show up in the window from which you select icons.
You could try using Advance Search for terms like Editing Icons, Default Icons, Bound Script Icons, etc and perhaps could run across the original thread.
At the time, and with an earlier version of PSP, I actually did edit several icons to use as bound scripts, saved them and it did work to an extent. However, it was - for me at least - quite a project and I finally didn't bother with doing it any more. And I think I recall that keeping track of which icons were edited wasn't easy because the window from which you select icons didn't properly update to show my edited icons - I had to keep notes of which specific icon in the row of default icons was the one I had edited for a specific script because the actual edit doesn't show up in the window from which you select icons.
You could try using Advance Search for terms like Editing Icons, Default Icons, Bound Script Icons, etc and perhaps could run across the original thread.
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
Re: Customizing the default Bind Script icons?
Thank you Joe!
I think I found the topic: viewtopic.php?f=56&t=62962&hilit=default+icons
I was looking for a more permanent solution than editing the.cache files, and indeed the CoreXUIRC.dll file include the bind-script icons. I found 2 instances of them (small and bigger) using Resource Hacker (GreenFish Icon Editor does not find them). They are both in the PNG folder tree, with IDs 22999 and 23002 (the tree is huge so I didn't go over all of it, I just got lucky founding them - there can be more, because PSP offers 3 icon sizes I think, plus their monochrome versions, right?).
Anyway, I saved those 2 I found as png files from within Resource Hacker, then I loaded them into GreenFish, I edited & saved them with different names. Back in RH, I replaced the original bitmaps with the new ones. I then deleted the 3 PSP ColorSmall/Medium/LargeIcons.cache files.
I have my PSP set to small color icons and it worked, however I didn't check with other settings. Also, the Bind Script dialog still showed the original icons, but once you bind a script to an icon it shows fine. This is quite strange, most probably the default icons shown at the top of the dialog are stored in a different dll, or they are in some of the tons of the entries I didn't check in the dll file.
Next I tried editing just the cache files (actually I only edited the ColorSmallIcons.cache, since those are the icons I use in PSP). I just loaded it into GreenFish, edited it and saved it (I had already kept a backup, but cache files are recreated anyway). It also worked, but once again, the dialog box listed the original icons (the bounded scripts showed the modified icons).
All in all, too much of a hassle. I haven't tried yet to edit the png files in the X1 and X2 folders I mentioned in my previous post (I'll probably won't lol).
That's a pitty tho, it could be so much simpler. Anyway, thank you all for your replies.
I think I found the topic: viewtopic.php?f=56&t=62962&hilit=default+icons
I was looking for a more permanent solution than editing the.cache files, and indeed the CoreXUIRC.dll file include the bind-script icons. I found 2 instances of them (small and bigger) using Resource Hacker (GreenFish Icon Editor does not find them). They are both in the PNG folder tree, with IDs 22999 and 23002 (the tree is huge so I didn't go over all of it, I just got lucky founding them - there can be more, because PSP offers 3 icon sizes I think, plus their monochrome versions, right?).
Anyway, I saved those 2 I found as png files from within Resource Hacker, then I loaded them into GreenFish, I edited & saved them with different names. Back in RH, I replaced the original bitmaps with the new ones. I then deleted the 3 PSP ColorSmall/Medium/LargeIcons.cache files.
I have my PSP set to small color icons and it worked, however I didn't check with other settings. Also, the Bind Script dialog still showed the original icons, but once you bind a script to an icon it shows fine. This is quite strange, most probably the default icons shown at the top of the dialog are stored in a different dll, or they are in some of the tons of the entries I didn't check in the dll file.
Next I tried editing just the cache files (actually I only edited the ColorSmallIcons.cache, since those are the icons I use in PSP). I just loaded it into GreenFish, edited it and saved it (I had already kept a backup, but cache files are recreated anyway). It also worked, but once again, the dialog box listed the original icons (the bounded scripts showed the modified icons).
All in all, too much of a hassle. I haven't tried yet to edit the png files in the X1 and X2 folders I mentioned in my previous post (I'll probably won't lol).
That's a pitty tho, it could be so much simpler. Anyway, thank you all for your replies.
Good Unofficial PaintShop Pro Tutorials: Creation Cassel • Make Shop Pro • HEC Image Editing • LeviFiction PSP Basics
(plus my own Gimp & Stuff)
(plus my own Gimp & Stuff)
-
JoeB
- Posts: 2778
- Joined: Fri Mar 28, 2008 10:04 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: LENOVO 4524PE4 ThinkCentre M91p
- processor: 3.10 gigahertz Intel Quad Core i5-2400
- ram: 8 GB
- Hard_Drive_Capacity: 4.6 TB
- Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
- Location: Canada
Re: Customizing the default Bind Script icons?
Glad you found it. Like you, I used both Resource Hacker and Greenfish Icon Editor to do the job also. And, like you, I finally decided that doing this was too much of a hassle!
For me, it likely would have been more worth the time if my edited icons would then be able to appear and be saved in the default icon window and be just as available as the default icons - moreso if I could also import them into newer versions of PSP - neither of which is the case unfortunately. But it was a learning experience at the time - which again unfortunately I've forgotten most of what I learned!
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
Re: Customizing the default Bind Script icons?
True!
Actually I may edit the ones in the CoreXUIRC.dll file, since that seems to be the source the cache files are created from. For the dialog box, I may look again at some time but if not, or until I do, I'll probably make a reference pic with the modified icons and keep it separately somewhere.
I doubt Corel will ever make a proper moddable theming engine. It looks a total mess, with icons scattered and repeated in so many files and folders. There are icons in there dated back in the Jasc days
Back in the day I was involved in GUI theming for several programs, so I do have an idea. The most popular were some free themes I made for Gimp (https://bit.ly/3bqF8vj) in GTK+2 with the ClearLooks engine (though it was not from scratch, the icons were already made ny anotehr modder). Anyway, I mean I can't even imagine what it would take for Corel JUST to tidy up all this apparent mesh in PSP, not even mentioning providing modding options for the general public.
Actually I may edit the ones in the CoreXUIRC.dll file, since that seems to be the source the cache files are created from. For the dialog box, I may look again at some time but if not, or until I do, I'll probably make a reference pic with the modified icons and keep it separately somewhere.
I doubt Corel will ever make a proper moddable theming engine. It looks a total mess, with icons scattered and repeated in so many files and folders. There are icons in there dated back in the Jasc days
Back in the day I was involved in GUI theming for several programs, so I do have an idea. The most popular were some free themes I made for Gimp (https://bit.ly/3bqF8vj) in GTK+2 with the ClearLooks engine (though it was not from scratch, the icons were already made ny anotehr modder). Anyway, I mean I can't even imagine what it would take for Corel JUST to tidy up all this apparent mesh in PSP, not even mentioning providing modding options for the general public.
Good Unofficial PaintShop Pro Tutorials: Creation Cassel • Make Shop Pro • HEC Image Editing • LeviFiction PSP Basics
(plus my own Gimp & Stuff)
(plus my own Gimp & Stuff)
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Customizing the default Bind Script icons?
I don't believe most of those images are used inside the program directly. They are more likely images used in the help files, the help palette, and various pop-ups. And they've been teasing us with the possibility of custom icons for years refusing to hide hints in the UI. One can only hope it's going to be there eventually and that it's just been a very very slow process as they make incremental changes to the UI design and setup. One of the many reasons they don't like to import old workspaces is because of all of the backend changes and it won't include new menu items.
https://levifiction.wordpress.com/
Re: Customizing the default Bind Script icons?
I just found the icons for the dialog too. They are also in the CoreXUIRC.dll file, but under the BITMAP tree, with ID 23038 (1st thing in the tree): https://prnt.sc/s2vur9
I did test it and it works. Note, RH exported the bitmap as 24bit w/o alpha. If you change it, and import it back, make sure you keep the gray background, because that's the solid color used for displaying transparent areas inside the dialog (well, no real harm if you don't keep it, the icons will have your changed color around them).
I did test it and it works. Note, RH exported the bitmap as 24bit w/o alpha. If you change it, and import it back, make sure you keep the gray background, because that's the solid color used for displaying transparent areas inside the dialog (well, no real harm if you don't keep it, the icons will have your changed color around them).
Last edited by migf1 on Mon Apr 20, 2020 9:24 pm, edited 3 times in total.
Good Unofficial PaintShop Pro Tutorials: Creation Cassel • Make Shop Pro • HEC Image Editing • LeviFiction PSP Basics
(plus my own Gimp & Stuff)
(plus my own Gimp & Stuff)
Re: Customizing the default Bind Script icons?
I hope so too Levi!
But now that we have found the dialog icons too, we better roll our sleeves up HAHAHAH
Btw, if you edit the dll file, you also need to delete the cache files for the appdata folder, then run PSP... in my case it shows without icons, I close it down, i run it again and the icons come back (and cached).
But now that we have found the dialog icons too, we better roll our sleeves up HAHAHAH
Btw, if you edit the dll file, you also need to delete the cache files for the appdata folder, then run PSP... in my case it shows without icons, I close it down, i run it again and the icons come back (and cached).
Good Unofficial PaintShop Pro Tutorials: Creation Cassel • Make Shop Pro • HEC Image Editing • LeviFiction PSP Basics
(plus my own Gimp & Stuff)
(plus my own Gimp & Stuff)
-
jjangfree
- Posts: 29
- Joined: Thu Sep 22, 2016 1:01 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUS P8P67 B3
- processor: I5-2500K 4.0 over
- ram: 16GB
- Video Card: GT240
- Hard_Drive_Capacity: 4TB
- Corel programs: XI, X9, 2020
Re: Customizing the default Bind Script icons?
You need Resource Hacker to change bind script icons.
There are 3 images accoring to your monitor resolutions I guess.
CoreXUIRC.dll > PNG > 22999 번 (PNG format : 2400 x 48px)
CoreXUIRC.dll > PNG > 23002 번 (PNG format : 1200 x 24px)
CoreXUIRC.dll > Bitmap > 23038 번 (BMP format : 1600 x 32px)
For old versions. maybe... prior to X3.
Corel Paint Shop Pro PhotoRC.dll
Bitmap > 2102 (16x16px : bmp format)
PNG > 2171 (24 x 24 : png format)
PNG > 25035 (32 x32 : png format)
There are 3 images accoring to your monitor resolutions I guess.
CoreXUIRC.dll > PNG > 22999 번 (PNG format : 2400 x 48px)
CoreXUIRC.dll > PNG > 23002 번 (PNG format : 1200 x 24px)
CoreXUIRC.dll > Bitmap > 23038 번 (BMP format : 1600 x 32px)
For old versions. maybe... prior to X3.
Corel Paint Shop Pro PhotoRC.dll
Bitmap > 2102 (16x16px : bmp format)
PNG > 2171 (24 x 24 : png format)
PNG > 25035 (32 x32 : png format)
