I made textbox, but it needs to send data to other application, which have custom formatting (like %B is for bold, and if you want to turn off bold, you type keyword for normal font, and so).
So, formatting is much different than usual. I made textbox with buttons that can add keywords for text formatting, and that’s working fine, but if I need preview in one label in same app, what is good way to do it? (I made preview button that sends text to label)
Obviously, I need to set that %B is starting bold text in label and so for other formatting keywords, unless there is better way?
Your question is not clear, are you trying to format the string from the textbox to show in the label with or without bold or are you trying to show the formatting examples like %B in the label?
for the second option I would use a literal string so that the signs don’t mess you up.
ie:
For the first option I think you need to create a function where you process the string. The function should receive a string, modify the label depending on the custom formatting, clean the string and apply it to the label.
ie: