forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Resource (Can they be used in bitlists?)

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sun Feb 27, 2005 11:55 am    Post subject: Resource (Can they be used in bitlists?) Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Feb 27, 2005 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Sun Feb 27, 2005 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sun Feb 27, 2005 6:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
DW
Contributor
Contributor


Joined: 21 Mar 2003
Posts: 175
Location: UK

PostPosted: Mon Feb 28, 2005 7:00 am    Post subject: Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Feb 28, 2005 9:35 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group