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 files and lists...

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


Joined: 24 Apr 2002
Posts: 72

PostPosted: Sun Jan 07, 2007 12:09 pm    Post subject: Resource files and lists... Reply with quote

I've got a problem with my icons disappearing in lists. I think this problem has something to do with the pipe-symbol (|) in %%ResourceFile|0. This way the LIST ADD has 2 pipes and discards everything after the 2nd (I presume). I prefer this method rather than using #RESOURCE...

Code:
%%ResourceFile = @PATH(%0)Icons.dsr
%%HistoryIconServer = %%ResourceFile|0
%%HistoryIconWarning = %%ResourceFile|822

DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG ADD,BITLIST,History,20,20,220,140
DIALOG SHOW

LIST ADD, History, Hello|%%HistoryIconServer


Thanks in advance,
Raymond
Back to top
View user's profile Send private message
achiuawa
Newbie


Joined: 05 Dec 2005
Posts: 3

PostPosted: Thu Feb 25, 2010 2:45 pm    Post subject: Reply with quote

Hello Did u found a solution ?

I hace exactly the same Pb
Back to top
View user's profile Send private message Send e-mail
bornsoft
Contributor
Contributor


Joined: 19 Feb 2009
Posts: 113
Location: Germany

PostPosted: Thu Feb 25, 2010 3:09 pm    Post subject: Reply with quote

hi,

have you tried the "#" infront of the resource yet?

Code:

LIST ADD, History, Hello|#%%HistoryIconServer


and/or
Code:

#RESOURCE ADD,binary,Icons.dsr,ICONS          ( Don't use variables like @path(%0) in here )


the helpfile says:
Quote:

The compiler will not automatically add resources specified in DIALOG SET commands, DIALOG ADD commands for BITCOMBO or BITLIST dialog elements (where they are specified as part of a text string), or where the resource file names are held in a variable. The #RESOURCE ADD directive can be used to ensure that the required files are linked into the executable file in this case.

...

The #RESOURCE directive allows you to specify files that are to be linked into the executable file as resources.

When the resource is used in a DIALOG ADD, DIALOG SET or LIST LOADFILE command, the filename must be prefixed by a '#' character.

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