How to link icons to program?
Moderator: Rathinagiri
How to link icons to program?
Maybe my question is trivial, but I can't find how to link some icons to program?
Could somebody help me?
Could somebody help me?
Re: How to link icons to program?
Marek,mol wrote:Maybe my question is trivial, but I can't find how to link some icons to program?
Could somebody help me?
How about to including in your <programname>.rc the following string(s):
// Using a resource file like this, you can include bitmaps, icons and sounds
// inside EXE.
//
// Resource name Resource Type Resource FileName
//
WORLD ICON WORLD.ICO
...
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Re: How to link icons to program?
Going this way, I preperad .rc file, but in my opinion, it doesn't work.
If I declare icon in window definition, it appears.
But main program listed in folder has standard icon from ide.
My older project, linked with hmg 2.0 and older IDE has icon.
Maybe something with IDE ???
If I declare icon in window definition, it appears.
But main program listed in folder has standard icon from ide.
My older project, linked with hmg 2.0 and older IDE has icon.
Maybe something with IDE ???
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: How to link icons to program?
Had you mentioned all your resources in the IDE resources page of the Project Browser window? (instead of listing them in a .rc file)
It works fine for me.
It works fine for me.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: How to link icons to program?
I have all resources placed in "Resrc." tab:
but still only standard icon appears in my AKORD.EXE
but still only standard icon appears in my AKORD.EXE
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: How to link icons to program?
icon and ICON are the same? And, is there any empty space after the last line?
I don't understand why this happens.
I don't understand why this happens.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: How to link icons to program?
thanks! it must be "ICON" not "icon" !!!
So simply then so hard to find error...
Best regards, Marek
So simply then so hard to find error...
Best regards, Marek
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: How to link icons to program?
Happy that you had solved.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: How to link icons to program?
Ok Hello to all on this forum
i'm new in programming hmg ide : excellent !
i have a problem with icons and bitmaps . I want to include the .bmp of my program in the executable:
I have include in the ressource of program the list of them like
OPEN BITMAP INFO.BMP
SAVE BITMAP FREE.BMP etc..
But these bitmaps don't link in the exe
(i have try with an rc file but the same pb)
However when i use the resource witn :
WORLD ICO SOMETHING.ICO : no problem
thank's in advance
regards, jean-michel kimono59
i'm new in programming hmg ide : excellent !
i have a problem with icons and bitmaps . I want to include the .bmp of my program in the executable:
Code: Select all
DEFINE MAIN MENU
DEFINE POPUP "File"
MENUITEM "Open" ACTION MsgInfo("Open") IMAGE "info.bmp"
MENUITEM "Save" ACTION MsgInfo("Save") IMAGE "free.bmp"
SEPARATOR
MENUITEM "Exit" ACTION ThisWIndow.Release IMAGE "exit.bmp"
END POPUP
DEFINE POPUP "Help"
MENUITEM "About" ACTION MsgInfo("HMG IDE - Menu Designer")
END POPUP
END MENU
END WINDOW
OPEN BITMAP INFO.BMP
SAVE BITMAP FREE.BMP etc..
But these bitmaps don't link in the exe
(i have try with an rc file but the same pb)
However when i use the resource witn :
WORLD ICO SOMETHING.ICO : no problem
thank's in advance
regards, jean-michel kimono59
Re: How to link icons to program?
Bon a priori on ne veut pas me répondre, dommage, merci quand même !