Custom button text in Popup Dialog Device

Assuming you used the StringToMessage function for the title and description
which would have looked something like this
SetTitle(StM("My Title Here"))

For Buttons you would need to do something like this:
.SetButtonText(StM("This is Button 3",2))

The 2 I put in the end tells the code which of the 6 buttons I want it to set the ButtonText to, You may also see how despite me saying “this is button 3” I have put the number 2 on the index. That’s because indexes start from 0,

So Button 1 Would be index 0
Button 2 Would be index 1
Button 3 Would be index 2
etc…

If you want any further clarification I would be glad to provide it.

1 Like