[Solved] Add (custom) icon to a macro

All topics about specific development with COM interface, LIP language, API in VB, ...

Moderators: remi77, Daniel, jacs

gvdvenis
Private First Class
Private First Class
Posts: 16
Joined: Thu Apr 12, 2007 10:36 am
TopSolid Module: TopSolid'Design
TopSolid Version: 7.6
Location: Zutphen
Contact:

[Solved] Add (custom) icon to a macro

Unread post by gvdvenis » Tue Apr 17, 2007 1:36 pm

OK Here's another one... I made this macro using toplip. Now when i insert this into a menu or icon bar, I'd like to add an icon to it. So this leaves me with two possibilities:

1: Use an existing icon
2: Add my own icon.

The resulting questions are:
1: Where can i find an overview of all icons i can use? Such an overview would make life a lot easier....
2: Is it possible to implement your own icons, if so: How do i do this?

Thanks in advance,

Gert.
hobby's are for amateurs

Fabrice
Private
Private
Posts: 7
Joined: Thu Feb 22, 2007 10:33 am
Location: Toulouse

Unread post by Fabrice » Wed Jun 13, 2007 10:34 am

Hi,

Good question... And I hope this can answer partly to it :

Just take a look at existing .men file (top.men, topzdft.men, ...). The icon is described by the #xx,xx,xx,xx statement (where xx stands for numbers) between menu entry name and the equal sign (=) before LIP macro location...
This way you should be able to use any existing icon !

Adding your own is not possible :( , sorry...
.oOO[... Fabrice ...]OOo.

gvdvenis
Private First Class
Private First Class
Posts: 16
Joined: Thu Apr 12, 2007 10:36 am
TopSolid Module: TopSolid'Design
TopSolid Version: 7.6
Location: Zutphen
Contact:

Unread post by gvdvenis » Wed Jun 13, 2007 1:30 pm

Well, adding my own was kind of what i meant :?. My other question was not how to do it, but how to get an overview of all possible icons, and their corresponding "#xx, xx, xx, xx statement", so i can easlily choose the one i'd like to use, instead of having to look up te icon by searching throug the .icn file(s) belonging to a certain toolbutton. But thanks for your reply anyway.
hobby's are for amateurs

Fabrice
Private
Private
Posts: 7
Joined: Thu Feb 22, 2007 10:33 am
Location: Toulouse

Unread post by Fabrice » Thu Jun 14, 2007 11:50 am

There is one "not-recommended" way to show all possible icon...

Here are the steps to follow :
Download reshacker (http://www.angusj.com/resourcehacker/) and run it. Then open topres.dll file in TopSolid bin directory.
and go to the "Bitmap" folder.

In statement "#aa,bb,cc,dd",
"aa" is always 0
"bb" is the name of one of the sub-folders of "Bitmap" folder.
"cc" is the index of the icon in the bitmap (always named 1036 in ResHacker)
"dd" can be missing, so do not take care of it...

DO NOT CHANGE THE FILE TOPRES.DLL, OR YOU MIGHT NEED TO REINSTALL TopSolid !

I hope this will shorten the time you spend looking for icons.
.oOO[... Fabrice ...]OOo.

gvdvenis
Private First Class
Private First Class
Posts: 16
Joined: Thu Apr 12, 2007 10:36 am
TopSolid Module: TopSolid'Design
TopSolid Version: 7.6
Location: Zutphen
Contact:

Great!

Unread post by gvdvenis » Fri Jun 15, 2007 3:03 pm

Thanks for your answer. This is definitely a leap forward!
hobby's are for amateurs

Post Reply