Android Question MsgBox2 text bold/italic

jeronimovilar

Active Member
Licensed User
Longtime User
Is it possible to change a word (just one word) to bold or italic in msgbox2?
Example: Answ = Msgbox2("Confirm?" & CRLF & "Bold: " & Text1 & CRLF & "Italic:: " & text2, "", "YES", "", "NO", Null)
 
Solution
Is it possible to change a word (just one word) to bold or italic in msgbox2?
Use Msgbox2Async along with CSBuilder. Msgbox2 is deprecated. Here is an example:
B4X:
Msgbox2Async(cs.Initialize.Bold.Color(Colors.Red).append("Confirm ").pop.Typeface(Typeface.CreateNew(Typeface.DEFAULT, _
        Typeface.STYLE_ITALIC)).append(CRLF).Append("By clicking yes").PopAll, "Warning", "Yes","", "No", Null,True)
        Wait For Msgbox_Result (Result As Int)
        If Result = DialogResponse.POSITIVE Then
            Log("Yes of course")
            'rest of your code
        End If

Mahares

Expert
Licensed User
Longtime User
Is it possible to change a word (just one word) to bold or italic in msgbox2?
Use Msgbox2Async along with CSBuilder. Msgbox2 is deprecated. Here is an example:
B4X:
Msgbox2Async(cs.Initialize.Bold.Color(Colors.Red).append("Confirm ").pop.Typeface(Typeface.CreateNew(Typeface.DEFAULT, _
        Typeface.STYLE_ITALIC)).append(CRLF).Append("By clicking yes").PopAll, "Warning", "Yes","", "No", Null,True)
        Wait For Msgbox_Result (Result As Int)
        If Result = DialogResponse.POSITIVE Then
            Log("Yes of course")
            'rest of your code
        End If
 
Upvote 1
Solution
Top