HMG Resource MAIN Icon in Explorer

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 457
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 49 times
Been thanked: 92 times

HMG Resource MAIN Icon in Explorer

Post by AUGE_OHR » Wed Jan 15, 2020 4:29 am

hi,

i have release Sample RULER with 2 Icon.
it work with HRuler but not with VRuler and all seem me the same (*.RC = 25 Byte) :(

but both does not show Icon in Explorer so what do i miss :?:

---

when crash at compile/link i got _hmg_resconfig.h and _temp.rc

Code: Select all

1 24 HMGRPATH\Windows7.Manifest
so "Number 1" is used any "my Setting" are on End of _temp.rc

is there a Way NOT to use _hmg_resconfig.h and _temp.rc but my *.RC :idea:

how is the right Syntax for MAIN Icon in *.RC
how do i "set" in in FMG (i use full path to Icon)

need some advice, thx
have fun
Jimmy

User avatar
danielmaximiliano
Posts: 2193
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 202 times
Been thanked: 34 times
Contact:

Post by danielmaximiliano » Wed Jan 15, 2020 1:21 pm

Mi resource file

Code: Select all

Shopping        ICON    Icons\shopping.ico
Shopcart        ICON    Icons\shopcart.ico
Barcode	     ICON    Icons\barcodereader.ico
Carrito           ICON    Icons\carrito.Ico
Registradora   BITMAP  Bmp\Register.bmp
Configurar     BITMAP  Bmp\Motherboard.bmp
Salir              BITMAP  Bmp\aexit.bmp
CarritoBMP     BITMAP  Bmp\Carrito.bmp

TMother	       BITMAP  Bmp\TMother.bmp
LosTilos       JPG     Jpg\LosTilos.jpg
Form main

Code: Select all

DEFINE WINDOW Principal ;
              AT 6 , 6 ;
              WIDTH 1010 HEIGHT 710;
              TITLE "Autoservicio Los Tilos 2014" ;
              ICON "Shopping";
              MAIN ;
              ON INIT    ON_INIT_Principal();
              NOMAXIMIZE NOMINIMIZE NOSIZE  NOSYSMENU;
              ON PAINT   ON_PAINT_Principal()
rc file.png
rc file.png (29.66 KiB) Viewed 616 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

RPC
Posts: 147
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF
Has thanked: 41 times
Been thanked: 8 times

Post by RPC » Wed Jan 15, 2020 7:41 pm

Hi AUGE_OHR
Check Daniel's solution it works

User avatar
AUGE_OHR
Posts: 457
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 49 times
Been thanked: 92 times

Post by AUGE_OHR » Wed Jan 15, 2020 11:48 pm

hi,

yes now i got both Icon in Explorer, THX :D

... but i still have Problem with vertical Icon in Taskbar ... and Total Commander
HMG_ICON.png
HMG_ICON.png (97.26 KiB) Viewed 558 times
have fun
Jimmy

User avatar
AUGE_OHR
Posts: 457
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 49 times
Been thanked: 92 times

Post by AUGE_OHR » Thu Jan 16, 2020 3:47 am

hi,

now i get Icon also in Total Commander ... but only if i create a New Folder and compile/link there :o
does somebody have a Idea why it does not work in Original Folder :idea:
TC_NO_ICON.JPG
TC_NO_ICON.JPG (126.2 KiB) Viewed 543 times
have fun
Jimmy

User avatar
AUGE_OHR
Posts: 457
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 49 times
Been thanked: 92 times

Post by AUGE_OHR » Thu Jan 16, 2020 5:33 am

hi,

got Solution for Icon ... have to do with Windows Icon Cache

all Apps must be close to run this

Code: Select all

TASKKILL /f /im explorer.exe
CD /d %userprofile%\AppData\Local
DEL IconCache.db /a
START explorer.exe
EXIT
and all Icon for "Cache" will rebuild.

if Icon is on DeskTop type

Code: Select all

ie4uinit.exe -show
have fun
Jimmy

Post Reply