Douglas Farias Expert Licensed User Longtime User Jul 2, 2014 #1 hi in the b4a can i put colors in code on one string? for exemple string = casa like html <color = blue>ca<color = red>sa ? existe color in line no b4a?
hi in the b4a can i put colors in code on one string? for exemple string = casa like html <color = blue>ca<color = red>sa ? existe color in line no b4a?
NJDude Expert Licensed User Longtime User Jul 2, 2014 #2 You can do something like: Code: Copy Private Red As Int Red = Colors.Red And when needed: Code: Copy Label1.TextColor = Red Upvote 0
You can do something like: Code: Copy Private Red As Int Red = Colors.Red And when needed: Code: Copy Label1.TextColor = Red
Douglas Farias Expert Licensed User Longtime User Jul 2, 2014 #3 dim lala = "lalala" as string 1° in one string ? no label its possible? 2° its possible add 2 colors? like this lalala Upvote 0
dim lala = "lalala" as string 1° in one string ? no label its possible? 2° its possible add 2 colors? like this lalala
NJDude Expert Licensed User Longtime User Jul 2, 2014 #4 You assign the value of a string to an object, like a Label for example, 2 colors is not possible. Upvote 0
stevel05 Expert Licensed User Longtime User Jul 3, 2014 #5 If you want to change the colors (and other formatting) of strings in a label have a look at Andrews Richstring library, if you want to be able to click on the substrings have a look at Martins LabelExtras Library. I don't know if the two will work together, I haven't tried it. If not, and that's what you need, you could always use a webview and HTML. Upvote 0
If you want to change the colors (and other formatting) of strings in a label have a look at Andrews Richstring library, if you want to be able to click on the substrings have a look at Martins LabelExtras Library. I don't know if the two will work together, I haven't tried it. If not, and that's what you need, you could always use a webview and HTML.