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


Joined: 24 Apr 2002 Posts: 72
|
Posted: Sun Jan 07, 2007 12:09 pm Post subject: Resource files and lists... |
|
|
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 |
|
 |
achiuawa Newbie
Joined: 05 Dec 2005 Posts: 3
|
Posted: Thu Feb 25, 2010 2:45 pm Post subject: |
|
|
Hello Did u found a solution ?
I hace exactly the same Pb |
|
| Back to top |
|
 |
bornsoft Contributor

Joined: 19 Feb 2009 Posts: 113 Location: Germany
|
Posted: Thu Feb 25, 2010 3:09 pm Post subject: |
|
|
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 |
|
 |
|
|
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
|
|