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!
1. "Delete it" aligns left by default but I like to set it align center.
2. I like to make "Cancel" bold and in Red color.
3. I like to put image into answer pop up
on mouseUp
get the htmltext of field "DeleteIt" ##field "DeleteIt" contains "Delete it" texts are in Blue color and center aligned
answer it with the htmltext of field "Ok" or the htmltext of field "Cancel" ## texts in field "Cancel" are in bold & Red color
end mouseUp
##no idea to put image into answer pop up
I think you may consider rolling your own with a small modal stack. This is simple to do, and nobody will be able to tell the difference. You will script either the standard functionality of the button(s) or be able to do much more.
Yes its easier to make own modal stack but I need answer pop-up above a native multiline.. my own answer pop-up won't be visible when a multiline is being used.
The link is not exist anymore(Link in the link). Could you give me another source, if you don't mind?
I can't create my own button with colors because a native multiline will be a top layer always.
so Is there no way to customize color of characters with answer dialogue on mobile platform?
I will need "Cancel" or "Delete" (with Bold & red color) option above a native multiline.
on mouseUp
put "this is a nice color" into tExtkleurtje
answer tExtkleurtje
set the foregroundColor of this field to "#114499"
answer tExtkleurtje
end mouseUp
on mouseUp
put "this is a nice color" into tExtkleurtje
answer tExtkleurtje
set the foregroundColor of this field to "#114499"
answer tExtkleurtje
end mouseUp
No idea what this should do with color?
1. tExtkleurtje is a variable that is filled in the first line.
2. No other line does change this anyhow.
3. A variable PER SE cannot be colored!
4. "ANSWER..." will open anohter STACK on the dektop and iOS, so what exspect you to happen?
5. Setting a foregroundcolor of a field does not affect any ANSWER dialog calls.
Yolu HAVE to play around with HTML to make the dialog colorful somehow!
on mouseUp
# look in dictionary HTMLText
answer "<p> <B> <i> <h1> <threedbox> <font color=white bgcolor=red> This is how you do it ! </font></threedbox> </i> </B></p>"
end mouseUp
still not exactly what i wanted because now only the background color of the text itself is different.
I want to have the color of the text white and the background of the whole field red.
on mouseUp
set itemdelimiter to "#"; answer last item of the script of me
end mouseUp
# Not all font faces show both of bold and italic
#
<p bgcolor="255,0,0" align="center">
<font face="Verdana" color="255,255,255" size="32">
<b><i> This is <br> how you <br> do it! </i></b></font></p>
For a better vertical spacing at end you may try "<hr>" just before "</b>".
Attachments
Changed in above: bgcolor="58,134,197", face="Marker Felt Wide"