Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Changing Icons

Author
Message
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 16th Jul 2005 14:26 Edited at: 16th Jul 2005 14:27
When you use the code "set window on", and the window is visible, how do you change the icon that appears like the Microsoft Window icon to something different? Say, an image?

Can you change the icon for your .exe (when viewed in Windows Explorer or My Computer)? I know you can change it for a .lnk link, but what about.exe's?

I've searched through books and tutorials, but this questions till haunts me.

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.marvel-us-media.tk | www.slayerbattletanks.tk
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 16th Jul 2005 19:43
Search the thread titles and google search for "icons", "change icon" and other variations, but also look for something called a resource hacker. Basically the .ico file is built with the .exe, so there's no way to change the icon in DB. I thought DBP had an icon change feature in the editor, but DBC definitely does not. Once you change the .exe's icon the window icon will change as well.

Crazy Donut Productions
Current Project: A Redneck game
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 16th Jul 2005 21:40
When you use DarkBasic, and run a code, it makes a temp file. The icon you see, is from the temp file. I THINK that when you create an exe and change the icon of it, you'll see that icon in the window.

Immunity and Annihalation makes Immunihalation...
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 16th Jul 2005 21:40
[edit]
sorry BearCDP, I didn't read your reply
[/edit]

Immunity and Annihalation makes Immunihalation...
AndLabs
20
Years of Service
User Offline
Joined: 7th Dec 2004
Location:
Posted: 19th Jul 2005 05:43
Use a resource editor, like Colin Wilson's XN Resource Editor (http://www.wilsonc.demon.co.uk/delphi.htm) to change the icon. That's what I use for my apps! The standard DB icon is probably generated in the DB Linker source code. And since the program window icon is NOT the same as that of the program icon in cases like Visual C++ 6 (the language used to make DB), the window icon will probably be different. Hope that helps!

For the Software You Want, AMPERSAND LABORATORIES is the place! [URL=http://www.andlabs.com/]
[/URL]

Login to post a reply

Server time is: 2025-05-22 19:43:13
Your offset time is: 2025-05-22 19:43:13