How to insert Big images on the card

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

How to insert Big images on the card

Post by pkmittal » Fri Dec 14, 2007 2:01 pm

Hello,

I have 4 images ( each of them having width of 900 and height 400)

I want to put those images one card in a order.

How to set the scrolling option of the card so that I can view all images by doing horinzontal and verytical scrolling?

For the text, we can set the scrolling option on text field. But what one has to do for the images??

Please let me know if you have any idea.

Thanks
Best regards
Pradeep

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

Post by Klaus » Fri Dec 14, 2007 2:18 pm

Salaam Pradeep,

cards and stacks cannot be scrolled unfortunately.

So here are the necessary steps to simulate a scrolling card:
1. Import your images
2. Place them on your card where you need them, even if they might out of sight on the card! You might need to do this by script/message box.
3. GROUP all your images.
4. Enable horizontal/vertical scrollbars for that group.
5. Set the size of that group to the size of your card/stack.
6. MOST IMPORTANT! Set the "lockloc" (Lock location) of that group to true.
If you don't do this, then the group will resize to its original size when you enter that card the next time!

Done :-)


Best

Klaus

pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

Post by pkmittal » Fri Dec 14, 2007 2:28 pm

Thanks a lot . It seems to work.

By the way is there any way to have mutplie lines in the cell of the table?

I am actually having a big table , each of the cell have large text strings. I want to keep the width of the column fixed so that text can move to next line of the cell. Is there any way to do that?

pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

Importing big table from word doc

Post by pkmittal » Fri Dec 14, 2007 2:36 pm

Robin, I am actually having a big characteristic table ( 4 pages) in word doc. and I want to put that table in the card.

right now I am taking 4 screen shots, grouping them and putting in card.

Is there any other better way to do that?

Thanks for your help.

Best Regards
Pradeep

Post Reply

Return to “Talking LiveCode”