images din't appear when files transfered

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

snarf
Posts: 8
Joined: Thu Apr 12, 2018 4:25 pm

images din't appear when files transfered

Post by snarf » Thu Apr 12, 2018 4:30 pm

hi... i'm a begineer
i created a livecode file where i put images on stacks...
the problem is the images didn't appear when i use other computer to open the file
what's the problem?
tq

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: images din't appear when files transfered

Post by bogs » Thu Apr 12, 2018 4:44 pm

Hello snarf :D

Sounds like you put the images on the stack by reference, instead of importing them into the actual stack as controls.

Doing this is fine, but you have to keep at least 2 things in mind.
1. the images have to be on the other computer as well
2. the path the reference uses needs to be the same on both systems.

So, for example, if the pictures on your computer are in "Documents/myPictures", then those same pictures need to be on the other computer in "Documents/myPictures". One way to do this is to copy the pictures into a zip file with the directories all laid out and use a relative path. Another would be to do the above, then when your program starts, have it copy the pictures to a specialFolderPath.

You can find both relative path and specialFolderPath in the dictionary.
Image

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: images din't appear when files transfered

Post by jmburnod » Thu Apr 12, 2018 4:49 pm

Welcome to this forum,

There is two ways to import images:
One is a reference to an image file on your hard disk (i think that is the case for your stack. You may verify this in objects inspector which shows the filename of your image.
Did you import your images with "import referenced control" menu?
Second way is by paste or by "import file as control" menu. In this case your images not linked to a filename
Both works but referenced way is better if you have a lot of images.

Best regards
Jean-Marc
Last edited by jmburnod on Thu Apr 12, 2018 4:58 pm, edited 1 time in total.
https://alternatic.ch

snarf
Posts: 8
Joined: Thu Apr 12, 2018 4:25 pm

Re: images din't appear when files transfered

Post by snarf » Thu Apr 12, 2018 4:52 pm

tqvm... ok i got it...
but using the 'import as control' also got problem.. the resized images that i put on the stack will back to their original sizes which are different from the intended sizes each time i open the file... can u please explain this to me? tqvm...

snarf
Posts: 8
Joined: Thu Apr 12, 2018 4:25 pm

Re: images din't appear when files transfered

Post by snarf » Thu Apr 12, 2018 4:55 pm

jmburnod wrote:
Thu Apr 12, 2018 4:49 pm
Welcome to this forum
the problem is the images didn't appear when i use other computer to open the file
There is two ways to import images:
One is a reference to an image file on your hard disk (i think that is the case for your stack. You may verify this in objects inspector which shows the filename of your image.
Did you import your images with menu "import referenced control" ?
Best regards
Jean-Marc
yes... but the image size goes back to the original size each time i reopen the file... and it different from my intended image size...
Last edited by snarf on Thu Apr 12, 2018 4:57 pm, edited 1 time in total.

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: images din't appear when files transfered

Post by Klaus » Thu Apr 12, 2018 4:57 pm

Hi snarf,

welcome to the forum! :D

To avoid resizing do this:
1. Resize your image(s)
2. Then go to the inspector for the image(s) and check "lockloc" (Lock size and Position) on the "Position" tab.

That's it, no more unwanted resizing!


Best

Klaus

snarf
Posts: 8
Joined: Thu Apr 12, 2018 4:25 pm

Re: images din't appear when files transfered

Post by snarf » Thu Apr 12, 2018 5:03 pm

Klaus wrote:
Thu Apr 12, 2018 4:57 pm
Hi snarf,

welcome to the forum! :D

To avoid resizing do this:
1. Resize your image(s)
2. Then go to the inspector for the image(s) and check "lockloc" (Lock size and Position) on the "Position" tab.

That's it, no more unwanted resizing!


Best

Klaus
tq... but sorry, i didnt find the 'Position' tab...

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: images din't appear when files transfered

Post by Klaus » Thu Apr 12, 2018 5:15 pm

The one with the "cross" sign.

For images the 5th tab from the left: Basic, Custom, Colors, Effects, Position, ...
The checkbox at the top of that tab.

snarf
Posts: 8
Joined: Thu Apr 12, 2018 4:25 pm

Re: images din't appear when files transfered

Post by snarf » Thu Apr 12, 2018 5:34 pm

Klaus wrote:
Thu Apr 12, 2018 5:15 pm
The one with the "cross" sign.

For images the 5th tab from the left: Basic, Custom, Colors, Effects, Position, ...
The checkbox at the top of that tab.
ooo... tq tqvm... yes i saw it... tqvm...

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: images din't appear when files transfered

Post by Klaus » Thu Apr 12, 2018 5:50 pm

What on earth does tq and tqvm mean? :shock:

snarf
Posts: 8
Joined: Thu Apr 12, 2018 4:25 pm

Re: images din't appear when files transfered

Post by snarf » Thu Apr 12, 2018 5:56 pm

Klaus wrote:
Thu Apr 12, 2018 5:50 pm
What on earth does tq and tqvm mean? :shock:
haha... tq very much... :D

ClintMA
Posts: 39
Joined: Thu Jan 21, 2016 2:52 am

Re: images din't appear when files transfered

Post by ClintMA » Thu Apr 12, 2018 5:58 pm

What on earth does tq and tqvm mean?
tq = thank you (think phonetically)
tqvm = thank you very much

😎

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: images din't appear when files transfered

Post by Klaus » Thu Apr 12, 2018 5:59 pm

AHA!
Thank you from a non-native english speaker :-)

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: images din't appear when files transfered

Post by bogs » Thu Apr 12, 2018 9:06 pm

Thank you from a native english speaker :D (I didn't get it either, Klaus, maybe we're just old :wink: )
Image

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: images din't appear when files transfered

Post by Klaus » Thu Apr 12, 2018 9:14 pm

bogs wrote:
Thu Apr 12, 2018 9:06 pm
Thank you from a native english speaker :D (I didn't get it either, Klaus, maybe we're just old :wink: )
NEVER! :D

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”