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!
on mouseUp
set the HTMLText of char 2 of fld 1 to "<img src=Happy.png>"
if char 2 of fld 1 is empty
then put char 2 of fld 1 into ChatBox
else set the HTMLText of char 9 of fld 1 to "<img src=Happy.png>"
end mouseUp
I feel there has to be an easier way. I just need the images, when clicked/pushed to go into the field, next to one another and for there only to be a max of 4 per line before moving on to the next line.
set the imageSource of char 2 of fld 1 to "<img src=Happy.png>"
Has the image in question been imported into the stack, or other stack in use?
All that said, is this what you intended? I sort of think you want four images set side-by-side, but this ought not to involve a field, necessarily. Perhaps a dataGrid?
Well I want them to be able to be "sent" like a message, So how would I get them to send as such, in whatever order the user wants to select.. As it is now if you select a different order the "image" gets replaced.
I am developing this after being in the hospital for 8 days and noticing people that couldn't talk or write it's a long process to communicate how you're feeling and what you want.. So select how you're feeling etc and then send it as a message to your family via text or however but my hurdle is getting the images to insert into the field in whatever order they are "clicked" on.
Anyways, I am very excited and appreciate your help so, so, so much!
set the imageSource of the last char of fld ChatBox to img "1004"
cause you said I have to use the ID but nothing happens when that is plugged in, I may have the resources messed up, somehow but wanted to make sure my code was "sound"
Good start.
But please look in the Dictionary for proper use of imageSource, you'll see that I (we) made a little error.
Simon
Edit; and you have your quotes in the wrong place
Craig won't let me spell it out for you as you should learn how to use the resources available to you. I agree but sometimes it's just too much fun solving questions.
Last edited by Simon on Thu Aug 21, 2014 7:22 pm, edited 1 time in total.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Ok good... Now how would you go about adding a new character to the end of the field then replace it?
It would happen so fast you needn't worry about it looking funny.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
on mouseUp
put "a" _____ field "ChatBox" -- see if you can figure out what word goes there
set the imageSource of the last char of field "ChatBox" to 1004
end mouseUp
Just take a wild guess at what word could be used there
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!