Chart text does not display confusion

Next
 From:  c3g (LONG)
11124.1 
I want to add an icon to the pipe script of MOI 3D, but there is a problem, the text below the icon is not displayed, which is very confusing. I have tried for a long time but can't find the problem, please help me to see what is wrong, thank you very much.






  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11124.2 In reply to 11124.1 
Hi c3g, the regular UI uses <moi:Text> elements for text content in the UI, to support translations.

Anywhere there is a <moi:Text textid="id_value"> element, it means "Look up the text content matching this id in the current language's string table".

Those are areas where the text changes when the current language is changed under Options > General > Language.


In your case you have <moi:Text textid="Pipe"> , so that will look in the current language's string table for a value named "Pipe", and there isn't any such value so it's blank.

When you want to put in direct plain text instead of a text id string table lookup, you can just put in the text directly instead of using <moi:Text>, so for example have the button like this:

<moi:CommandButton icon="icons/pipe.png" command="Pipe">Pipe</moi:CommandButton>

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  c3g (LONG)
11124.3 In reply to 11124.2 
Michael, thank you very much for your answer. I've already solved it. I'm very happy with my ui, thank you.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All