[WD20] Window Icon - Same on All Windows

Startbeitrag von Curtis am 10.05.2016 14:47

How does one change the icon for all the windows at the project scope? (Icon on the left side of title bar)

I don't want to have to go through each window description to the image tab and then select an icon file. I also don't want to have to write code for every window (MyWindow..Icon = "icon.ico").

Antworten:

you can define it in one of the options of the executable generation.

http://doc.windev.com/en-US/?2025006

von Paulo Oliveira - am 10.05.2016 15:09
Thanks!

Does anyone know if there is a way to do it within the development environment so that when generating help screen shots automatically they show my icon?

von Curtis - am 10.05.2016 17:16
Hi Curtis,

As far as I know you can do a find and replace (CTRL+F) on the current icon name and replace it with the new one.
You can toggle the options to search in everything, so also the objects metadata.

Cheers,

Peter Holemans

von Peter Holemans - am 10.05.2016 19:15
Hi Curtis

I haven't tried this myself, but maybe you could consider changing the contents of the icon file while keeping the name the same, so that you don't have to change it for each window?
Create a new icon, say "new_icon.ico",
then make a safety copy of the old icon: copy "icon.ico" to "old_icon.ico",
then rename "new_icon.ico" to "icon.ico".
I think this should also do the trick.

Best regards
Ola

von Ola - am 10.05.2016 20:16
That would work Ola if the default icon had a path. Every window with has nothing set in the Icon field on the Image tab.

If I can figure out where the default WD icon is I can use your trick.

von Curtis - am 10.05.2016 20:20
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.