|
| Inicio → WINDEV 2024 → [WD20] SysIconAdd problem - icon not found - how to use internal resource |
| [WD20] SysIconAdd problem - icon not found - how to use internal resource |
| Iniciado por vido.vouk, 03,nov. 2015 14:07 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 03,noviembre 2015 - 14:07 |
I want to set the application icon with SysIconAdd. This icon is linked into the apllication (used on a button) and it is also the application icon defined during the 'Generate' (Create windows executable).
A call to function SysIconAdd generates a runtime error, if the file is not present in the working directory.
QUESTION: How do I access an icon which is already embedded in the application ? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 03,noviembre 2015 - 16:35 |
Hi, You can try the following: 1) In the project Explorer pane, right click the project name and select "Add some elements to the project" 2) Select the image that you will use (it will be located under folder 'Other') 3) In the SysIconAdd(), refer the to image name you imported (you can drag and drop)
This way I think that it will not be necessary to "put" the image in the working directory.
I hope it helps.
Bruno |
| |
| |
| | | |
|
| | |
| |
| Publicado el 04,noviembre 2015 - 10:01 |
great, it works.
Thank you |
| |
| |
| | | |
|
| | | | |
| | |
|