[Code Help - Beginner] Having an issue
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
[Code Help - Beginner] Having an issue
Let's see if I can explain this right.
I have a card and I'm trying to create a scrolling field that takes up nearly the whole card. In this scrolling field I'd like to add a few images, some text, input field, etc. Can't figure it out.
Any help is appreciated.
I have a card and I'm trying to create a scrolling field that takes up nearly the whole card. In this scrolling field I'd like to add a few images, some text, input field, etc. Can't figure it out.
Any help is appreciated.
Re: [Code Help - Beginner] Having an issue
Hi shawnblc,
A field is used for text what you want is a scrolling group.
So go ahead and put you text fileds and images onto a card and the "group" them all. Select the vertical scrollbar to allow you to scroll it manually.
Simon
A field is used for text what you want is a scrolling group.
So go ahead and put you text fileds and images onto a card and the "group" them all. Select the vertical scrollbar to allow you to scroll it manually.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: [Code Help - Beginner] Having an issue
Simon that works, but what if I have several lines (pages of information) for this one card. You can only stretch the card so far according to your screen size.Simon wrote:Hi shawnblc,
A field is used for text what you want is a scrolling group.
So go ahead and put you text fileds and images onto a card and the "group" them all. Select the vertical scrollbar to allow you to scroll it manually.
Simon
Re: [Code Help - Beginner] Having an issue
Hi shawnblc,
Is your question about how to make that group the first time when it could be really really long?
Let LC do it:
Lets say you have 10 fields and 10 images alternating and say 500 vertical px each (right off the screen)
put your 10 fields in a small size with small image (holder) both full width on your card. Then:
Do you see how that works?
Simon
Edit: Make sure you lock the group size and position!!
Is your question about how to make that group the first time when it could be really really long?
Let LC do it:
Lets say you have 10 fields and 10 images alternating and say 500 vertical px each (right off the screen)
put your 10 fields in a small size with small image (holder) both full width on your card. Then:
Code: Select all
on mouseUp
put myVeryLongText into fld 1-- myVeryLongText is a variable that contains the first fields text
set the height of fld 1 to the formattedHeight of fld 1
set the top of fld 1 to the top of grp 1
--now you should have the field filled. Now the first image
set the filename of img 1 to firstImage-- firstImage contains the path to the image (this is for external images)
set the height of img 1 to the formattedHeight of img 1
set the top of img 1 to the bottom of fld 1
etc.....
end mouseUp
Simon
Edit: Make sure you lock the group size and position!!
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: [Code Help - Beginner] Having an issue
Thanks for the response.
Yes, I can create a group and have it scrolling. Just not on a big card with many lines of text and images. I'll see what I can do with what you provided and update this thread. Thank you.
Yes, I can create a group and have it scrolling. Just not on a big card with many lines of text and images. I'll see what I can do with what you provided and update this thread. Thank you.
Re: [Code Help - Beginner] Having an issue
I just tried a manual approach which might be easier for you:
put a field with an image underneath it on the card and group them.
Select vertical scrollbar for the group
Re-size the group to the size of your card
Lock it's size and position
paste your text into the field
Now you will be going back and forth using the Select Group icon in the menubar.
Select just the image and drag it down off the card, you will see the scrollbar increasing in size.
Re-size the text fld going back and forth between dragging the image down Re-size text until all the text fits.
Remember to Edit the group when you add a new field or image.
Simon
put a field with an image underneath it on the card and group them.
Select vertical scrollbar for the group
Re-size the group to the size of your card
Lock it's size and position
paste your text into the field
Now you will be going back and forth using the Select Group icon in the menubar.
Select just the image and drag it down off the card, you will see the scrollbar increasing in size.
Re-size the text fld going back and forth between dragging the image down Re-size text until all the text fits.
Remember to Edit the group when you add a new field or image.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: [Code Help - Beginner] Having an issue
Excellent. I'll be trying it out now.
Re: [Code Help - Beginner] Having an issue
That's what I was trying to do! Thank you Simon!