Re: Blank Images from Disk (Mac MC2.3g)

2000-02-15 Thread Peter Reid

>  > From: Peter Reid <[EMAIL PROTECTED]>
>  > Subject: Blank Images from Disk (Mac MC2.3g)?
>  > Date: Mon, 14 Feb 2000 11:58:16 +
>  > MIME-Version: 1.0
>  > Content-Type: text/plain; charset="us-ascii" ; format="flowed"
>  >
>  > I'm trying to load various images that make up the screen design of
>  > my stack directly from disk files rather than have them embedded.
>  > However, if I use something like the following:
>  >
>  > set the fileName of image "MainTitle" to "/MacHD/Images/title.gif"
>  >
>  > I just get blank filled rectangles instead of the images themselves.
>  > If I select the same file from within the MetaCard development
>  > environment, it displays correctly.  I've even looked at the source
>  > code in this part of the development environment and can't see where
>  > it's doing anything different to me, but my code simply doesn't work?!
>  >
>  > Any suggestions please, this is driving me nuts!

Just call me stoopid!!

I was using relative file locations and a control file to set up 
various folder offsets.  However, I'd forgotten to declare one of the 
sub paths as a global and so it had an empty value at the point where 
it was being used to access the images!

Sorry to have bothered the list with my stupidity!!

Cheers
Peter


Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
E-mail: [EMAIL PROTECTED]
Web: http://www.reidit.co.uk

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



Re: Blank Images from Disk (Mac MC2.3g)

2000-02-14 Thread Raymond E. Griffith

> From: Peter Reid <[EMAIL PROTECTED]>
> Subject: Blank Images from Disk (Mac MC2.3g)?
> Date: Mon, 14 Feb 2000 11:58:16 +
> MIME-Version: 1.0
> Content-Type: text/plain; charset="us-ascii" ; format="flowed"
> 
> I'm trying to load various images that make up the screen design of
> my stack directly from disk files rather than have them embedded.
> However, if I use something like the following:
> 
> set the fileName of image "MainTitle" to "/MacHD/Images/title.gif"
> 
> I just get blank filled rectangles instead of the images themselves.
> If I select the same file from within the MetaCard development
> environment, it displays correctly.  I've even looked at the source
> code in this part of the development environment and can't see where
> it's doing anything different to me, but my code simply doesn't work?!
> 
> Any suggestions please, this is driving me nuts!


Try this: (code this into a button)

on mouseUp
  answer file "Which file do you want to use?"
  put it into x
  set the filename of image "backgfile" to x
  put x into fld "graphicLink"
end mouseUp

This will tell you whether you have set up your link correctly. My guess is
that you have a space or something missing. In any event, you should be able
to solve your problem this way.

> 
> Cheers
> Peter

Hope this helps.

Raymond



This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



RE: Blank Images from Disk (Mac MC2.3g)?

2000-02-14 Thread David Cramer

As someone who can speak with great authority on how to do all kinds 
of MetaCard stuff wrong (!) I can suggest a couple things. But before 
I do that, I can vouch for the fact that the only thing wrong with 
your situation is likely the current path, either because it's 
misspelled or some other probably really simple mistake.

1) Are these disk image files located in a subfolder of your stack? 
This would probably be the most desirable setup. Then you could "set 
the directory" (a global MetaCard variable) to whatever the stack's 
path is.

2) This brings up the point of spelling. Could it be that there is a 
hard space or invisible character of some sort in the names of part 
of your path? If so, and the stack is in a parental relationship 
(after the DNA testing) to the graphics, something like the following 
statement in the stack script would set the path so you could then 
refer to the graphics using relative syntax. Then it would be totally 
transportable, it wouldn't matter how you had spelled the names of 
your drive, folders, etc., and it would adjust itself automatically 
on the fly.


 global vgPath

 on preOpenStack
   put the effective fileName of this stack into vgPath
   set the itemDel to "/"
   delete the last item of vgPath
   set the directory to vgPath
 end preOpenStack


Then if your stack's fileName was 
"/MacHD/Hoosis/Watsis/MyStack/MyStack.mc" and a typical graphic was 
"/MacHD/Hoosis/Watsis/MyStack/Images/title.gif" you could refer to it 
within the stack thusly:

 set the fileName of image "MainTitle" to "Images/title.gif"

...and you could also move the MyStack folder anywhere on any machine 
and it would still work.

Regards,

David
-- 
David Cramer, Process Innovation Evangelist  87-1313 Border Street
PBSC Computer Training Centres (an IBM company)  Winnipeg MB R3H 0X4
Corporate Office Research & Development  Canada

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



Re: Blank Images from Disk (Mac MC2.3g)?

2000-02-14 Thread David C. Tremmel

I think another cause of this problem is that your stack doesn't have 
sufficient memory to display the image.  You may have already tried 
this, but if not, try giving MetaCard or your standalone more memory 
(on the off chance that you need help with this, close the 
app/standalone, go to the Finder, select the MetaCard app or your 
standalone, choose Get Info > Memory from the file menu, and give it 
a higher value)...

Regards,

Dave Tremmel


>>>Tried it, no difference!
>>>
>>>By the way, if I use the development environment to select the file,
>>>it specifies the filename with a leading "/".  So, I'm fairly sure
>>>that the path should start with a leading "/" anyway!
>>>
>>>Thanks anyway.
>>>Peter
>>
>>Sorry about that useless piece of help. :)
>>
>>If it's of any use, your script works fine on my Mac (MC 2.3g). I 
>>bet that makes you feel good. :)
>>
>>Cheers
>>Dave Cragg
>
>Thanks for the feedback - always welcome even if it doesn't provide 
>a solution ;)
>
>I wonder what's causing things to go wrong on my system???
>
>Cheers
>Peter
>
>
>Peter Reid
>Reid-IT Limited, Loughborough, Leics., UK
>Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
>E-mail: [EMAIL PROTECTED]
>Web: http://www.reidit.co.uk
>
>This is the MetaCard mailing list.
>Archives: http://www.mail-archive.com/metacard%40lists.best.com/
>Info: http://www.xworlds.com/metacard/mailinglist.htm


This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



Re: Blank Images from Disk (Mac MC2.3g)?

2000-02-14 Thread Peter Reid

>>Tried it, no difference!
>>
>>By the way, if I use the development environment to select the file,
>>it specifies the filename with a leading "/".  So, I'm fairly sure
>>that the path should start with a leading "/" anyway!
>>
>>Thanks anyway.
>>Peter
>
>Sorry about that useless piece of help. :)
>
>If it's of any use, your script works fine on my Mac (MC 2.3g). I 
>bet that makes you feel good. :)
>
>Cheers
>Dave Cragg

Thanks for the feedback - always welcome even if it doesn't provide a 
solution ;)

I wonder what's causing things to go wrong on my system???

Cheers
Peter


Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
E-mail: [EMAIL PROTECTED]
Web: http://www.reidit.co.uk

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



Re: Blank Images from Disk (Mac MC2.3g)?

2000-02-14 Thread Dave Cragg


>Tried it, no difference!
>
>By the way, if I use the development environment to select the file,
>it specifies the filename with a leading "/".  So, I'm fairly sure
>that the path should start with a leading "/" anyway!
>
>Thanks anyway.
>Peter

Sorry about that useless piece of help. :)

If it's of any use, your script works fine on my Mac (MC 2.3g). I bet 
that makes you feel good. :)

Cheers
Dave Cragg

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



Re: Blank Images from Disk (Mac MC2.3g)?

2000-02-14 Thread Peter Reid

>At 11:58 AM + 14/2/2000, Peter Reid wrote:
>>I'm trying to load various images that make up the screen design of
>>my stack directly from disk files rather than have them embedded.
>>However, if I use something like the following:
>>
>>  set the fileName of image "MainTitle" to "/MacHD/Images/title.gif"
>>
>>I just get blank filled rectangles instead of the images themselves.
>>If I select the same file from within the MetaCard development
>>environment, it displays correctly.  I've even looked at the source
>>code in this part of the development environment and can't see where
>>it's doing anything different to me, but my code simply doesn't work?!
>
>Hi Peter
>
>Try the file path without the leading forward slash:
>
>   set the fileName of image "MainTitle" to "MacHD/Images/title.gif"
>
>Cheers
>Dave Cragg

Tried it, no difference!

By the way, if I use the development environment to select the file, 
it specifies the filename with a leading "/".  So, I'm fairly sure 
that the path should start with a leading "/" anyway!

Thanks anyway.
Peter


Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
E-mail: [EMAIL PROTECTED]
Web: http://www.reidit.co.uk

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



Re: Blank Images from Disk (Mac MC2.3g)?

2000-02-14 Thread Dave Cragg

At 11:58 AM + 14/2/2000, Peter Reid wrote:
>I'm trying to load various images that make up the screen design of
>my stack directly from disk files rather than have them embedded.
>However, if I use something like the following:
>
>   set the fileName of image "MainTitle" to "/MacHD/Images/title.gif"
>
>I just get blank filled rectangles instead of the images themselves.
>If I select the same file from within the MetaCard development
>environment, it displays correctly.  I've even looked at the source
>code in this part of the development environment and can't see where
>it's doing anything different to me, but my code simply doesn't work?!

Hi Peter

Try the file path without the leading forward slash:

   set the fileName of image "MainTitle" to "MacHD/Images/title.gif"

Cheers
Dave Cragg

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm



Blank Images from Disk (Mac MC2.3g)?

2000-02-14 Thread Peter Reid

I'm trying to load various images that make up the screen design of 
my stack directly from disk files rather than have them embedded. 
However, if I use something like the following:

set the fileName of image "MainTitle" to "/MacHD/Images/title.gif"

I just get blank filled rectangles instead of the images themselves. 
If I select the same file from within the MetaCard development 
environment, it displays correctly.  I've even looked at the source 
code in this part of the development environment and can't see where 
it's doing anything different to me, but my code simply doesn't work?!

Any suggestions please, this is driving me nuts!

Cheers
Peter

Peter Reid
Reid-IT Limited, Loughborough, Leics., UK
Tel: +44 (0)1509 268843 Fax: +44 (0)870 052 7576
E-mail: [EMAIL PROTECTED]
Web: http://www.reidit.co.uk

This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm