Page 1 of 1
How to Override DEFAULT FiveWin ICON ?
Posted: Sun Jul 28, 2019 3:43 pm
by shri_fwh
Dear All ,
After Application Built the app.EXE is executing and on the Windows Status BAR the Default FiveWIN ICON is showing.
Have tried below code to use app ICON for the main window but it does not get override the default FiveWin.ICO
Code: Select all | Expand
DEFINE ICON oICon RESOURCE "app_icon"
DEFINE WINDOW oApp:oWnd STYLE WS_POPUP COLOR CLR_BLACK, c_MWIN_BCK_CLR ICON oICon
Am I doing right ? Please guide me.
Thanks
Shridhar
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Sun Jul 28, 2019 4:13 pm
by cnavarro
include in your rc file ( resource with name
AppIcon )
AppIcon ICON DISCARDABLE ".\MyIcono.ico"
in your application
DEFINE ICON oIcon RESOURCE "AppIcon"
Set icon to windows object
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Mon Jul 29, 2019 4:57 pm
by shri_fwh
Dear Sir ,
Include below command in the .rc file but it is giving an error of "Allocate Failed"
AppIcon ICON DISCARDABLE .\Healthgui.ico
Thanks
Shridhar
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Mon Jul 29, 2019 10:36 pm
by cnavarro
Try with correct path and quotes
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Tue Jul 30, 2019 3:57 am
by shri_fwh
Dear Sir ,
tried below code but no success...!
Code: Select all | Expand
AppIcon ICON DISCARDABLE "C:\VIMDEV32\VIMFA32\RES\app.ico"
by the way below resources are compiling successfully without using quote.
Code: Select all | Expand
save1 10 .\icon\save1.png
save2 10 save2.png
exit1 10 exit.png
search1 10 search1.png
invoice 10 invoice.png
bottom BITMAP .\..\bitmaps\32x32\bottom.bmp
help BITMAP .\..\bitmaps\32x32\help.bmp
help3 BITMAP .\..\bitmaps\32x32\help3.bmp
new BITMAP .\..\bitmaps\32x32\new.bmp
open BITMAP .\..\bitmaps\32x32\open.bmp
copy BITMAP .\..\bitmaps\32x32\copy.bmp
prev BITMAP .\..\bitmaps\32x32\previous.bmp
next BITMAP .\..\bitmaps\32x32\next.bmp
filter BITMAP .\..\bitmaps\32x32\filter.bmp
add BITMAP .\..\bitmaps\32x32\plus.bmp
edit BITMAP .\..\bitmaps\32x32\edit.bmp
del BITMAP .\..\bitmaps\32x32\minus.bmp
search BITMAP .\..\bitmaps\32x32\search.bmp
impexp BITMAP .\..\bitmaps\32x32\imp_exp.bmp
index BITMAP .\..\bitmaps\32x32\index2.bmp
paste BITMAP .\..\bitmaps\32x32\paste.bmp
process BITMAP .\..\bitmaps\32x32\process.bmp
run BITMAP .\..\bitmaps\32x32\run.bmp
struct BITMAP .\..\bitmaps\32x32\setup.bmp
top BITMAP .\..\bitmaps\32x32\top.bmp
relation BITMAP .\..\bitmaps\32x32\relation.bmp
report BITMAP .\..\bitmaps\32x32\print.bmp
code BITMAP .\..\bitmaps\32x32\source.bmp
view BITMAP .\..\bitmaps\32x32\view.bmp
deleted BITMAP .\..\bitmaps\16x16\delete0.bmp
nondeleted BITMAP .\..\bitmaps\16x16\yes.bmp
Thanks
Shridhar
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Tue Jul 30, 2019 7:35 am
by Enrico Maria Giordano
Try to remove DISCARDABLE.
EMG
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Tue Jul 30, 2019 8:50 am
by shri_fwh
Hi EMG ,
Tried also just "ICON" but not working...!
Thanks
Shridhar
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Tue Jul 30, 2019 9:00 am
by Enrico Maria Giordano
Which resource compiler are you using?
EMG
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Tue Jul 30, 2019 9:27 am
by shri_fwh
Hi EMG ,
I am using brc BCC 7 resource compiler.
Thanks
Shridhar
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Tue Jul 30, 2019 9:59 am
by Enrico Maria Giordano
This works fine for me:
EMG
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Tue Jul 30, 2019 5:00 pm
by shri_fwh
Hi EMG ,
Given below same code which having the error
"Allocate failed". Please let me know where it is wrong.
When I remove ICON and put BITMAP it works fine but ICON does get displayed on Windows' Task Bar.
app.rc file
Code: Select all | Expand
ico ICON ".\.\..\ICONS\fivewin.ico"
#ifndef __64__
1 24 "WinXP\WindowsXP.Manifest"
#endif
#ifdef __64__
1 24 "WinXP\WindowsXP.Manifest64"
#endif
background BITMAP .\..\bitmaps\backgrnd\iosbg.bmp
AppIcon ICON app.ico
save1 10 .\icon\save1.png
save2 10 save2.png
exit1 10 exit.png
search1 10 search1.png
invoice 10 invoice.png
bottom BITMAP .\..\bitmaps\32x32\bottom.bmp
help BITMAP .\..\bitmaps\32x32\help.bmp
help3 BITMAP .\..\bitmaps\32x32\help3.bmp
new BITMAP .\..\bitmaps\32x32\new.bmp
open BITMAP .\..\bitmaps\32x32\open.bmp
copy BITMAP .\..\bitmaps\32x32\copy.bmp
prev BITMAP .\..\bitmaps\32x32\previous.bmp
next BITMAP .\..\bitmaps\32x32\next.bmp
filter BITMAP .\..\bitmaps\32x32\filter.bmp
add BITMAP .\..\bitmaps\32x32\plus.bmp
edit BITMAP .\..\bitmaps\32x32\edit.bmp
del BITMAP .\..\bitmaps\32x32\minus.bmp
search BITMAP .\..\bitmaps\32x32\search.bmp
impexp BITMAP .\..\bitmaps\32x32\imp_exp.bmp
index BITMAP .\..\bitmaps\32x32\index2.bmp
paste BITMAP .\..\bitmaps\32x32\paste.bmp
process BITMAP .\..\bitmaps\32x32\process.bmp
run BITMAP .\..\bitmaps\32x32\run.bmp
struct BITMAP .\..\bitmaps\32x32\setup.bmp
top BITMAP .\..\bitmaps\32x32\top.bmp
relation BITMAP .\..\bitmaps\32x32\relation.bmp
report BITMAP .\..\bitmaps\32x32\print.bmp
code BITMAP .\..\bitmaps\32x32\source.bmp
view BITMAP .\..\bitmaps\32x32\view.bmp
deleted BITMAP .\..\bitmaps\16x16\delete0.bmp
nondeleted BITMAP .\..\bitmaps\16x16\yes.bmp
command to build .RES file
Code: Select all | Expand
for %%f in (%PRJHOMEDIR%\RES\*.rc) do %BCCDIR%\bin\brc32.exe -r -I%BCCDIR%\include -I%BCCDIR%\include\windows\sdk -I%BCCDIR%\include\windows\crtl -I%BCCDIR%\include\windows\rtl %%~f
Thanks
Shridhar
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Tue Jul 30, 2019 5:25 pm
by Enrico Maria Giordano
Works fine here. Try only
EMG
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Wed Jul 31, 2019 4:43 am
by shri_fwh
Hi EMG ,
Have tried but no success...!
I am not sure whether the ICON resolution does support or NOT. as below stackoverflow URL
[url]
https://stackoverflow.com/questions/123 ... ate-failed[/url]
Thanks
Shridhar
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Wed Jul 31, 2019 9:08 am
by Enrico Maria Giordano
Please, send me your icon to test it here.
EMG
Re: How to Override DEFAULT FiveWin ICON ?
Posted: Sat Aug 03, 2019 8:08 am
by shri_fwh
Hi EMG ,
Sent ICON file to your email
e.m.giordano@emagsoftware.itThanks
Shridhar