How to make, that the program icon everywhere was displayed

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
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

#1 Post by Eugene Lutsenko »

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

Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: How to make, that the program icon everywhere was displa

#2 Post by Wolfgang Ciriack »

Use the DC_IconDefault(MYICON) where MYICON is the defined number of a linked resource in your arc-file.
_______________________
Best Regards
Wolfgang

User avatar
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

#3 Post by Eugene Lutsenko »

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?

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How to make, that the program icon everywhere was displa

#4 Post by rdonnay »

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.

User avatar
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

#5 Post by Eugene Lutsenko »

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

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How to make, that the program icon everywhere was displa

#6 Post by rdonnay »

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.
The eXpress train is coming - and it has more cars.

User avatar
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

#7 Post by Eugene Lutsenko »

it is a pity certainly that the simplest and natural way isn't realized. And how then to make the arc and res files?

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How to make, that the program icon everywhere was displa

#8 Post by rdonnay »

Read the Xbase++ documentation about this.

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.

User avatar
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

#9 Post by Eugene Lutsenko »

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 :) )

User avatar
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

#10 Post by Eugene Lutsenko »

Everything turned out perfectly (and not difficult absolutely as it became clear). Thank you very much!

Post Reply