In my Contact manager is a plain text field that takes a date and notes about the phone call or email. Often, part of the note could be easily described with something like a Smilie.
For example, "left message on answer machine" Might be shown as a small phone handset image in the text height. with text either side forming essential parts of a message.
It would be possible to pick the image from several (like the Smilie array next to this post I am typing) and it would be placed where the cursor was, or dragged in from the choices and dropped.
Can this be done?
What settings are required for the text field?
How can the image be constructed for use, a special font for example?
How do you put non-text in with text
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: How do you put non-text in with text
look at 'imageSource' in the dictionary, it describes what you have to do to place images in text...
Dixie
Dixie
Re: How do you put non-text in with text
Thanks, I tried the dictionary, always my first port of call, didnt think of that keyword.
Most helpfull!
Most helpfull!
Re: How do you put non-text in with text
imageSource is of course the perfect way to achieve what I asked. However, now I have read up on it, there is an issue I cannot see how I can overcome.
Most of the text is typed into the field and that is fine. However some is copied and pasted from other sources, including the web. The field takes the characters pasted and retains the size, font, colour, again, this is no problem, because the data is then moved into a table field. As intended, this removes any atributes, so when read, all the text is normal.
I understand the imageSource is lost in the transfer. To overcome that, the use of html could be used, but as explained, that also retains the undesirable text formatting of copy and paste characters.
Looking at the problem for what it is, does anyone have any ideas on how to do the shorthand. i.e. image to represent the full text, that later is placed in full in the message. This way, no formatting issues take place.
I also wondered if anyone knew how to create a custom Font that has all the usual alfanumeric characters, but also has a range of shapes like wingdings. This would retain the characters between transfers (assuming the same font was used throughout).
Most of the text is typed into the field and that is fine. However some is copied and pasted from other sources, including the web. The field takes the characters pasted and retains the size, font, colour, again, this is no problem, because the data is then moved into a table field. As intended, this removes any atributes, so when read, all the text is normal.
I understand the imageSource is lost in the transfer. To overcome that, the use of html could be used, but as explained, that also retains the undesirable text formatting of copy and paste characters.
Looking at the problem for what it is, does anyone have any ideas on how to do the shorthand. i.e. image to represent the full text, that later is placed in full in the message. This way, no formatting issues take place.
I also wondered if anyone knew how to create a custom Font that has all the usual alfanumeric characters, but also has a range of shapes like wingdings. This would retain the characters between transfers (assuming the same font was used throughout).
Re: How do you put non-text in with text
Probably the easiest way to do this is to first strip out all of the text font and style information, then use the htmlText to transfer the text to the other field:
Hope this helps.
Devin
Code: Select all
set the textFont of char 1 to -1 of fld "source" to empty
set the textSize of char 1 to -1 of fld "source" to empty
set the textStyle of char 1 to -1 of fld "source" to empty
set the htmlText of fld "destination" to the htmlText of fld "source"
Devin
Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/
Learn to code with LiveCode University
https://livecode.com/store/education/