Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Adding an Icon and Application Information

  1. #1

    Adding an Icon and Application Information

    OK, it's in Turbo Explorer, It's Crashblock and I want to add an Exe icon and copyright information. I've added a runtime icon for the window. now I just need an icon to show up in Explorer.. any ideas?

    It's really late - so it's probably really simple.

  2. #2

    Adding an Icon and Application Information

    ROFL, extremely so. Get ready to kick yourself...

    CTRL-F11; 2nd & 7th tree-items.

  3. #3

    Adding an Icon and Application Information

    Talking about icons.

    Has anyone got experience with the new png icons that are used in Vista? What do you use to create them and how do you add them to an existing project so that it looks good in vista and xp?
    The views expressed on this programme are bloody good ones. - Fred Dagg

  4. #4

    Adding an Icon and Application Information

    CTRL+F11 just performs an Add to Project, also for this project, the Application and version info pages are all disabled.. Nice try though

  5. #5

    Adding an Icon and Application Information

    I guess yours is a no vlc app, right? If so, add {$R *.RES} somewhere in your main unit, then shift-ctrl-f11 and "Version Info" should be enabled
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  6. #6

    Adding an Icon and Application Information

    CZAR, I use either IconDeveloper (commercial) or IcoEffects (freeware) depending on my mood/project.


    JasonF, you can always write a RC script. The cheaters way is to put something like this:
    Code:
    1 ICON "Icon_1.ico"
    into a file like, "application.rc"; then (in a separate explorer window) drag that file to the brcc32.exe (Borland Resource Compiler) to create a .RES file. I hacked the definitions of my old PC to give RC scripts an extra menu item to let me easily compile them.

    It's a commandline app you can use to learn more if you want. Or, you could define whole dialogs that way if you wanted.

  7. #7

    Adding an Icon and Application Information

    @Legolas, That worked for version info, I've now got copyright info etc built into the Exe, which is important. Thanks

    @Robert, I think I need to research a bit more before I understand what you mean. :?

    I think that because my game is just a program (not even a console app), it doesn't give the option to set an icon, I'm guessing that's because there are no forms.. but that shouldn't stop me from including a file Icon..

    Anyway, I'll look into what you said Robert.

  8. #8

    Adding an Icon and Application Information

    Jason, are you in FPC or Delphi? There is quite a difference in how you set up the icons in each . Also a version would help in this case, as in D4-D6 you could do it no matter what. In D7 I believe you create a resource file and name the icon APPLICATION and it will pick it up (I'd have to go back and look again to make sure). After D7 I have no idea.

    In FPC you have to create a Lazarus Resource (LRS) and link it at compile time. Some place I have an example if you need one.

  9. #9
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Adding an Icon and Application Information

    One of the articles I wrote for PGD covers how to do this for windows applications.

    http://www.pascalgamedevelopment.com...58&p=1#article
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  10. #10

    Adding an Icon and Application Information

    Quote Originally Posted by cairnswm
    One of the articles I wrote for PGD covers how to do this for windows applications.

    http://www.pascalgamedevelopment.com...58&p=1#article
    That only works when Delphi includes the resource wizard; turbo delphi doesn't. Meaning he has to "brute force" the resource file by using a RC script to compile to a RES file.

    Icon 1 is almost always the file icon (not the application window), and you could look it up in how to create an icon group from the script and set "MAINICON" to the ID/Name of the entry.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •