Sign in to follow this  
Followers 0
devilyn

Replace Default Control Icons

3 posts in this topic

is it possible to change Listview default drag icon (plus sign in a square) & Treeview default expand and collapse icons to my own ico/png files?

thanks in advance.

Share this post


Link to post
Share on other sites



is it possible to change Listview default drag icon (plus sign in a square) & Treeview default expand and collapse icons to my own ico/png files?

thanks in advance.

It's a hack and a workaround, but you can replace the "plus box" icon in your "Compiled" script using Resource Hacker or other utility of your choice.

change this icon in your script exe:  Icon Group 169

it will change that icon for any control that uses it in your script,

if it breaks anything,  your on your own :x

don't compile your script with UPX.

edit the resource then manually compress with UPX etc.

TTBOMK, it's probably hardcoded for the control to use that resource,

but, there may be a programatic method to do this.

as for the treeview, you might be able to do that using customdraw or ownerdraw.

search CodeProject and other sites for examples

see attached image

post-22637-0-30019400-1292687443_thumb.p


I see fascists...

Share this post


Link to post
Share on other sites

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0