How to make, that the program icon everywhere was displayed
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
How to make, that the program icon everywhere was displayed
How to make, that the icon of the program was displayed when viewing the file manager and in the top left corner of a window (Title) at program start. Projects are desirable be not to using
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: How to make, that the program icon everywhere was displa
Use the DC_IconDefault(MYICON) where MYICON is the defined number of a linked resource in your arc-file.
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to make, that the program icon everywhere was displa
I understood it before asked a question at a forum, and tried to make, but couldn't make the file of resources.
Whether and there is no such possibility: it is simple to set a way on an icon as function parameter?
Whether and there is no such possibility: it is simple to set a way on an icon as function parameter?
Re: How to make, that the program icon everywhere was displa
You could try this:
Code: Select all
DC_IconDefault( XbpIcon():new():create():loadFile('myicon.ico') )
The eXpress train is coming - and it has more cars.
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to make, that the program icon everywhere was displa
I hoped that there should be such simple decision. But for me for some reason doesn't work:
Code: Select all
PROCEDURE AppSys
// Рабочий стол остается окном приложения
RETURN
FUNCTION MAIN()
DC_IconDefault( XbpIcon():new():create():loadFile('Smile_yellow.ico') )
DC_MsgBox('You should now see the eXPress++ Icon')
RETURN nil
Re: How to make, that the program icon everywhere was displa
Oops. I didn't look at my code.
I just assumed that it would support an XbpIcon object.
I looked at the Xbase++ documentation and the only thing allowed is a resource number.
You must include your icon in your .exe but linking in a .res file.
I just assumed that it would support an XbpIcon object.
I looked at the Xbase++ documentation and the only thing allowed is a resource number.
You must include your icon in your .exe but linking in a .res file.
The eXpress train is coming - and it has more cars.
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to make, that the program icon everywhere was displa
it is a pity certainly that the simplest and natural way isn't realized. And how then to make the arc and res files?
Re: How to make, that the program icon everywhere was displa
Read the Xbase++ documentation about this.
You create a RES file by using a ARC source file and ARC.EXE to compile.
You create a RES file by using a ARC source file and ARC.EXE to compile.
The eXpress train is coming - and it has more cars.
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to make, that the program icon everywhere was displa
Thanks. I will try to understand. (If within an hour you can't turn on the washing machine - read at last that about it write to instructions
)

- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to make, that the program icon everywhere was displa
Everything turned out perfectly (and not difficult absolutely as it became clear). Thank you very much!