Background Image in Scrolling Field

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bohrme
Posts: 7
Joined: Wed Dec 23, 2009 4:35 pm

Background Image in Scrolling Field

Post by bohrme » Wed Dec 23, 2009 4:50 pm

Is it possible to set an image as the background image in a scrolling text field? Something akin to a watermark or a non-repeating fill pattern.

Hope that makes sense.

Larry

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Background Image in Scrolling Field

Post by sturgis » Wed Dec 23, 2009 6:26 pm

You could put an image behind the field set to the rect of the field and adjust the blend level of the field so that it shows through.

BackgroundPattern doesn't really sound like what you want.

There are other ways do do this i'm sure, but this is easy and effective.

bohrme
Posts: 7
Joined: Wed Dec 23, 2009 4:35 pm

Re: Background Image in Scrolling Field

Post by bohrme » Wed Dec 23, 2009 8:29 pm

I've just encountered a strange problem. Of course, it may not be strange to others but to this newb it is strange. I can create a new stack, drop an image area onto it, assign an image, etc and it all works. But, if I try to do it with my existing card, I just get a gray box with no image. Is there a property I need to look for to allow this? I sure can't find one.

Thanks.

Larry

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Background Image in Scrolling Field

Post by sturgis » Wed Dec 23, 2009 8:56 pm

How are you assigning the image? In script, in the inspector? Have you imported the image into the stack, or are you referencing an external file or url image?

bohrme
Posts: 7
Joined: Wed Dec 23, 2009 4:35 pm

Re: Background Image in Scrolling Field

Post by bohrme » Wed Dec 23, 2009 9:25 pm

Here's the process I used:
  • I drag an image area from the Tool bar to my card.
  • I load up the Property Inspector for the Image Area
  • Basic Properties -> Source, Click on the folder icon and select an area to which to link
  • Select Open, file selection window goes away
  • aaaaaaaaaand nothing
BUT WAIT! WHAT IS THIS!

For some reason, every image I select in the file selection window gets pre-pended with "./../../../"

I deleted the relative path portion of the full path and it works now.

Thanks for the blending trick!

Larry

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Background Image in Scrolling Field

Post by sturgis » Wed Dec 23, 2009 10:17 pm

Interesting. Not sure why it would do the ./../../.. thing tho I have seen strange things if there are looping symbolic links/shortcuts. /shrug. Glad you got it figured out.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4036
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Background Image in Scrolling Field

Post by bn » Wed Dec 23, 2009 10:46 pm

Larry,
in preferences, -> 'Files and Memory' at the bottom you can set the "Always use absolute file paths for images"
may be that helps.
regards
Bernd

Post Reply

Return to “Multimedia”