| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sun Feb 27, 2005 11:55 am Post subject: Resource (Can they be used in bitlists?) |
|
|
I have a bitlist on my dialog and i have included a resource like so.
#resource add,icon,c:\temp\ICOS\app.ico
the file exists and is in the above location. I then wrote some code to add the icon to the bitlist, like so.
list add,bitlist2,Application Core Version %%VERSION|#app
I then compiled the exe and ran the application. The icon did not display in my list though. So now the question. What am i doing wrong? |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Feb 27, 2005 3:38 pm Post subject: |
|
|
I think you have to use the full name of the file on resources added using
the #RESOURCE directive.
Example:
| Code: | | list add,bitlist2,Application Core Version %%VERSION|#app.ico |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Sun Feb 27, 2005 4:55 pm Post subject: |
|
|
I have tried this but it does not work. Thank you though for trying. Can someone explain this to me???
I have another resource included called bg.bmp, i can call this one using the following.
list add,bitlist2,Application Core Version %%VERSION|#bg
And that works perfectly. Is their a icon limitation? |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Feb 27, 2005 6:22 pm Post subject: |
|
|
From what I'm gathering, the BitList is a list (List) that can optionally
display a bitmap (Bit) next to a list item. I don't use VDS 5, so I can't
say this for sure.
If you find that bitmaps work, you can download my bitmap/icon converter
from here -> BmpToIco.exe. It can convert bitmaps to icons or vice versa. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Mon Feb 28, 2005 7:00 am Post subject: |
|
|
It does display ico files, but only when directly selected.
It looks like i can only use bmps when used as a reource from within vds. |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Feb 28, 2005 9:35 am Post subject: |
|
|
That's correct. List elements can intrinsically display only bitmaps. When loading from a file, VDS can convert an icon to a bitmap, but it is time consuming. If you are including the resource in the EXE, you can do this conversion and include it as a bitmap, which is more efficient. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
|