View Single Post
  #1  
Unread 03-07-2021, 08:11 PM
Ivandar Ivandar is offline
The Wary
 
Join Date: Mar 2021
Posts: 2
Markup, GetText() and GetTextLength()

So ... I've found I can use <rgb> commands if I set a label or text box to having markup.

Two questions.

(A) are there any other <> commands that markup activates?

(B) GetText() and GetTextLength() strip the <> commands out ... This makes GetTextLength() inaccurate (because I've found the <> commands contribute to the 'real' length of the label) and make it impossible to get, modify, and re-set the label's text (you lose the <> commands when you do).

I've made a workaround, which is to simply keep a separate copy of the text, but that's space inefficient.

Has Turbine provided a way to get the 'markedup' text and textlength?
Reply With Quote