Page 1 of 1
How to make, that the program icon everywhere was displayed
Posted: Sun Nov 25, 2012 3:13 am
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
Re: How to make, that the program icon everywhere was displa
Posted: Sun Nov 25, 2012 5:01 am
by Wolfgang Ciriack
Use the DC_IconDefault(MYICON) where MYICON is the defined number of a linked resource in your arc-file.
Re: How to make, that the program icon everywhere was displa
Posted: Sun Nov 25, 2012 7:08 am
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?
Re: How to make, that the program icon everywhere was displa
Posted: Sun Nov 25, 2012 9:51 am
by rdonnay
You could try this:
Code: Select all
DC_IconDefault( XbpIcon():new():create():loadFile('myicon.ico') )
Re: How to make, that the program icon everywhere was displa
Posted: Sun Nov 25, 2012 10:18 am
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
Re: How to make, that the program icon everywhere was displa
Posted: Sun Nov 25, 2012 11:41 am
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.
Re: How to make, that the program icon everywhere was displa
Posted: Mon Nov 26, 2012 12:21 am
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?
Re: How to make, that the program icon everywhere was displa
Posted: Mon Nov 26, 2012 8:03 am
by rdonnay
Read the Xbase++ documentation about this.
You create a RES file by using a ARC source file and ARC.EXE to compile.
Re: How to make, that the program icon everywhere was displa
Posted: Mon Nov 26, 2012 9:05 am
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

)
Re: How to make, that the program icon everywhere was displa
Posted: Mon Nov 26, 2012 10:34 am
by Eugene Lutsenko
Everything turned out perfectly (and not difficult absolutely as it became clear). Thank you very much!