Set image correctly
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Set image correctly
Hello people, I have a problem, maybe someone can help me: on the start page I have three buttons on a second card I have a picture. now i want that when the mouse is pressed, the picture on the start page and in the field "msi" is put. PLEASE HELP! thank you
Re: Set image correctly
Ho Rob,
not sure i understand!?
So you have 2 cards.
On card 1 you have three buttons.
On card 2 there is an image.
Now when you click a button on card 1 then the image of card 2 should appear on card 1?
And what is with the field?
Where is the field, I mean on what card? 1 or 2?
And is its name-> "msi" or do you want to put the text "msi" into that field when the button is clicked?
Best
Klaus
P.S.
There is also a german LC forum!
http://www.livecode-blog.de/forums/foru ... ode-forum/
not sure i understand!?
So you have 2 cards.
On card 1 you have three buttons.
On card 2 there is an image.
Now when you click a button on card 1 then the image of card 2 should appear on card 1?
And what is with the field?
Where is the field, I mean on what card? 1 or 2?
And is its name-> "msi" or do you want to put the text "msi" into that field when the button is clicked?
Best
Klaus
P.S.
There is also a german LC forum!
http://www.livecode-blog.de/forums/foru ... ode-forum/
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Set image correctly
I am betting both the image and the field are on card 2, and they should both appear on card 1. I am 26.47% sure this is correct.
@ rob101059.
In any case, are you familiar with the "copy" and "clone" commands? Either of these might be used to take objects from one place and put them in another. Read about them in the dictionary. They each have their own strengths and features.
Craig
@ rob101059.
In any case, are you familiar with the "copy" and "clone" commands? Either of these might be used to take objects from one place and put them in another. Read about them in the dictionary. They each have their own strengths and features.
Craig
Re: Set image correctly
Or dummy image and field off visible screen that moves to onscreen and set the contents of the field and the image to be the same as the image you want to show.
and for the image there will be some way of setting the properties of the image to match another image (i.e. set the filename of img "Image1" of crd 1 to the filename of img "Image2" of crd 2)- untested!!!
X
Code: Select all
put "x,y,z, whatever" into fld "msi"
X
Re: Set image correctly
Hi all,
FYI, we were able to solve this in the german LC forum!
The actual problem was:
Best
Klaus
FYI, we were able to solve this in the german LC forum!
The actual problem was:
and I showed him several ways to do so.Now when you click a button on card 1 then the image of card 2 should appear on card 1?
Best
Klaus