Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

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

Share/Bookmark
  1. #11
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    50
    Posts
    8,091
    Blog Entries
    2
    Rep Power
    10
    Sorry but I'm not able to replicate under Windows 7.

    What thinBasic version do you have?
    You should have a .sDep file in the same directory of your main script when Bundling.

    From the executable I cannot derive any info, I can just see that it as an icon but I cannot un-bundle it to see how it was created, sorry.
    I'm considering to create a special Bundle version in order to Log some additional information.
    Last edited by ErosOlmi; 22-02-2017 at 18:45.
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  2. #12
    Eros
    now it works
    as i said before the bundling with icon works with me, and in win7 and winxp it is only said the icon file not found in the bundle tab

    the tests in windows XP : (i don't use or like win7+ it cause me heart pain realy):
    when i have added #BUNDLE Icon "graph.ico" as you said, and going to the bundle tool now it say icon file found look the attached picture
    i have used small icon 32x32 24bpp. the icon preview is okay look the attached picture, so in windows xp it can't preview 256x256 big icon while in win7+ it can preview 256x256 icons
    but in my opinion when we use the bundle tool in the thinair IDE , we should not need to write #BUNDLE Icon "graph.ico" for the bundle tool to know that the icon is loaded
    i think it is solved. but you may need to correct the click event proc on Bundle tab to show the icon file is loaded without the need to write #BUNDLE Icon "graph.ico
    thanks for all your efforts


    attached the sDep file
    my tb version is the latest 1.9.16.17
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	thinbasic_1.PNG 
Views:	10 
Size:	27.7 KB 
ID:	9652   Click image for larger version. 

Name:	thinbasic_2.PNG 
Views:	9 
Size:	22.2 KB 
ID:	9653  
    Attached Files Attached Files
    Last edited by primo; 22-02-2017 at 21:02.

  3. #13
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    50
    Posts
    8,091
    Blog Entries
    2
    Rep Power
    10
    Yes, icons containing only 256x256 size are not supported by Windows XP.
    Icons contains 256x256 size but also 32x32 and 48x48 size I think can be used.

    #BUNDLE Icon "graph.ico" is not used by thinBundle to know if icon is loaded.
    It is used to set the icon for your script once and for all so when you execute thinBundle it knows what icon you want for your bundled executable without the need to specify it every time you want to create your exe.

    Other languages/tools/ide specify single application options into an application project file.
    thinAir has no project file but some options can be indicated directly into your script. That's the case of #BUNDLE ... options: http://www.thinbasic.com/public/prod...le_version.htm
    Specify the #BUNDLE ... options you need into your script and when thinBundle it executed it will try to apply your options without the need to specify them every time.

    #BUNDLE options are just ignored when script is executed, they are considered only by thinBundle.

    .sDep files are special files created by thinCore.dll (thinBasic core engine) to pass script information discovered inside the script to other thinBasic tools like thinAir and thinBundle.

    Anyway, I will try to create a more "verbose" thinBundle so it will be more easy to understand why something is happening.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Page 2 of 2 FirstFirst 12

Similar Threads

  1. icon
    By Sean Con in forum 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

Posting Permissions

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