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

Thread: How to change exe icon for a TB program permanantly ?

  1. #1
    Member
    Join Date
    Aug 2015
    Location
    Keralam, India
    Posts
    121
    Rep Power
    21

    How to change exe icon for a TB program permanantly ?

    Hi all,
    I want to change the exe icon of my TB program which i create from my TB code. Now, each time i create exe, i need to change the icon. Is there any option to set my icon as default icon ?

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    You can load icon at Bundling time going into "Script icon" tab inside Bundling Dialog.

    Or you can definitely specify exe icon inside your main script using pre-parsing command: #BUNDLE Icon "BundleIconFileName"
    See help at: http://www.thinbasic.com/public/prod...undle_icon.htm
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Member
    Join Date
    Aug 2015
    Location
    Keralam, India
    Posts
    121
    Rep Power
    21
    Hi Eros,
    Thanks for the reply. You answer will solve my problem partially. Is there any option to force ThinAir to remember my preferencec like these ? Any ini file option or something like that ?

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Well,

    Bundling options are by script.
    I didn't thought about Bundling options as general options for all scripts not having specific local options expressed.
    But can be an idea at least for some options like Exe Icon.

    If you add #BUNDLE Icon "BundleIconFileName" in your script it will be detected forever when you bundle that script.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  5. #5
    Member
    Join Date
    Aug 2015
    Location
    Keralam, India
    Posts
    121
    Rep Power
    21
    Yeah, that's the possible solution.

  6. #6
    Hi Eros
    in windows xp , thinbasic v 1.9.16.17
    when we load the icon, it does not show in the preview


    but in fact it is loaded
    and when we go again to bundle , it say icon file was not found
    but when we click : click here to bundle, it is bundled okay with the icon



    this is the icon file: http://wikisend.com/download/124994/tomato.ico

  7. #7
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Thanks for reporting.

    Even if I would like not to support XP anymore ... I think it is better to have it on board as much as possible
    I will check what I can do.

    Can you please send me an example of not working icon you are using?
    Send mail to: support at thinbasic dot com
    Or attach file to this thread.

    Thanks a lot
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  8. #8
    Hi Eros
    i thought it does not work in windows 7+ also . but now i have switched to windows 7 64 bit installed on my same computer and using the same icon : the preveiw is okay:
    https://s23.postimg.org/i5buw6d23/image.png

    but in bundle tab it still say icon file not found:
    https://s11.postimg.org/4fgf86wdv/image.png

    the icon i have downloaded from here:
    http://www.iconarchive.com/show/food...phicloads.html

    you don't need to support windows xp for these icons, usually i don't bundle the codes, i run it from inside the IDE for my own research. this is the reason i haven't noticed it before until kcvinu have posted a question.

  9. #9
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Actually I'm not able to replicate the error in my Windows 10 computer.
    In all my cases Icon file is found by Bundle, Icon Preview seems working.

    I downloaded .ico file and placed into a sub directory of the script called .\Resources\
    Than added #Bundle Icon command:
    #Bundle Icon ".\Resources\Graphicloads-Food-Drink-Bottle-2.ico"
    
    Executed Bundle dialog, all seems ok.

    Also tried to load icon from different locations (both absolute and relative) and again it seems working fine.

    Bundle_IconError.jpg

    I will try to replicate at office where I have many different computer with different operating systems.

    In the meantime it would help me to have the .sDep file of your script in order to have a look at it.
    When you execute Bundle of a script called MyScript.tBasic, thinCore.dll (thinBasic Core Engine) creates a MyScript.sDep file.
    That file contains all needed info by Bundle in order to create the executable.
    Can you please send me (support at thinbasic dot com) or attach here?

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  10. #10
    the tests in windows 7/64:
    i don't find the *.sdep file after executing the bundled Sirpinsky.exe i have searched all the c:\thinbasic folder even the possible hidden files
    the only *.sdep files is
    live_image_tbasic.sdep 2 files
    thinVisualForm.tbasic.sdep

    i attach Sirpinsky.exe , you can remove the file when done. you see it has icon, and when bundled (in windows 7/64) it has a preview okay . but clicking on Bundle tab again it say there is no icon file loaded while in reality it is loaded successfully, so it is may be only the event handling of clicking on bundle tab after loading and previewing the icon, it is may be windows 10 remember somehow the loading of the icon and then provide this info to the event handling of clicking on bundle tab.
    Attached Files Attached Files

Page 1 of 2 12 LastLast

Similar Threads

  1. icon
    By Sean Con in forum Fixed or cleared errors in help material
    Replies: 5
    Last Post: 25-07-2010, 11:52
  2. Example: Section 4.3 (page 28), My First OGL Program (second program)
    By kryton9 in forum ThinBASIC programming in OpenGL/TBGL
    Replies: 2
    Last Post: 26-02-2010, 06:01
  3. AMD: change all
    By ErosOlmi in forum Technology
    Replies: 0
    Last Post: 07-10-2008, 20:55

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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