HMG Resource MAIN Icon in Explorer

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

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

HMG Resource MAIN Icon in Explorer

Post by AUGE_OHR »

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: 2320
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 372 times
Been thanked: 74 times
Contact:

Post by danielmaximiliano »

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 1248 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO

RPC
Posts: 211
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF
Has thanked: 93 times
Been thanked: 12 times

Post by RPC »

Hi AUGE_OHR
Check Daniel's solution it works

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

Post by AUGE_OHR »

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 1190 times
have fun
Jimmy

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

Post by AUGE_OHR »

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 1175 times
have fun
Jimmy

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

Post by AUGE_OHR »

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

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

Post by AUGE_OHR »

hi,

again i had Problem with "Main" Icon ... have to do with "sort" in *.RC

Code: Select all

MYMAIN     ICON RES\NCC.ico
MYUNKNOWN  ICON RES\IcoDriveUnknown.ico
MYFIXDRIVE ICON RES\IcoDrive.ico
MYFLOPPY   ICON RES\IcoFloppy.ico
MYUSBREMO  ICON RES\IcoSDcard.ico
MYSYSDRIVE ICON RES\IcoDriveSys.ico
MYNETDRIVE ICON RES\IcoNetDrive.ico
MYCDROM    ICON RES\IcoCDROM.ico
MYRAMDISK  ICON RES\IcoRAM.ico
HAND	   CURSOR res\hand.cur
FINGER	   CURSOR res\finger.cur
MYMAIN is the Icon i want but i got MYCDROM so there mus be some "sort" of *.RC Name :!:

now i rename my 1st Icon into

Code: Select all

A1MAIN     ICON RES\NCC.ico
and it is shown as "Main" again (after clear Icon Cache and re-start App like TC)
have fun
Jimmy

User avatar
SALINETAS24
Posts: 415
Joined: Tue Feb 27, 2018 3:06 am
DBs Used: DBF
Has thanked: 31 times
Been thanked: 44 times

Post by SALINETAS24 »

Hola Jimmy, yo también tuve problemas con el icono principal de mi aplicación y no me permitía cambiarlo.
Si no mal recuerdo la solución fue quitar la compilación incremental en el fichero .hbc y compilar otra vez.

Code: Select all

incpaths=
libpaths=
libs=
gt=
mt=no
instpaths=
inc=NO
Saludos y vamos con una cervecita!!
Como dijo el gran pensador Hommer Simpson..., - En este mundo solo hay 3 tipos de personas, los que saben contar y los que no. :shock:

Post Reply