mobile backgroundpattern

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

Post Reply
vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

mobile backgroundpattern

Post by vedus » Fri Mar 27, 2015 3:36 pm

I have some images so the user can change the background in app.
The images is on the folder and the folder is on standalone copy files.
the images exist in substack.
so i use the bellow simple code to change it on IDE (mac) and working fine.

Code: Select all

set the backgroundpattern of stack "MyStore" to 1037
when i test it on the simulator or the device the background pattern no change.
i miss something or is bug?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: mobile backgroundpattern

Post by jacque » Fri Mar 27, 2015 4:19 pm

Set the filename of the source image first before setting the background pattern.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: mobile backgroundpattern

Post by vedus » Fri Mar 27, 2015 5:40 pm

jacque wrote:Set the filename of the source image first before setting the background pattern.
Hi jacque thank you.
In the substack on the image i use >Basic Properties -> Source > and the filename exist on source.
in the standalone copy files is >images/*
Still i get the same no pattern change.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: mobile backgroundpattern

Post by jacque » Fri Mar 27, 2015 6:05 pm

The filename on the desktop is not the same in a mobile app. You can check the box in standalone settings -> Copy Files that says "Copy referenced files". I think that will translate your file paths to work on mobile.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: mobile backgroundpattern

Post by vedus » Fri Mar 27, 2015 6:11 pm

jacque wrote:The filename on the desktop is not the same in a mobile app. You can check the box in standalone settings -> Copy Files that says "Copy referenced files". I think that will translate your file paths to work on mobile.
Is checked,but still no results.
Btw i use LC commercial 7.0.4 (rc2)

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: mobile backgroundpattern

Post by jacque » Fri Mar 27, 2015 10:56 pm

Put all your images into a folder with the name "Referenced files", or whatever you named the folder in standalone settings. Reset all the image paths to point to their location inside that folder. Make sure the checkbox is still selected, and try rebuilding the app again.

If that doesn't work you'll need to set the file paths from a script. But first see if this works.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply