Package ilcd
Class Extra
Public Method setMessageOffset
static void setMessageOffset(int offset)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
| Parameter |
Range |
Description |
| offset |
0 ... max. text message index - 1 |
offset of the message index |
Note
- This functionality can be used to support multiple languages without conditional methods or macros. For example, if the messages for the English language are indexed 0 to 9 and for the German language 10 to 19, setting the Message Offset to 10 will automatically display the German messages instead of the corresponding English ones.
- When addressing text messages by name, a prefix or suffix can be used to realize language switching. (see Extra.setMessageNamePrefix(String) or Extra.setMessageNameSuffix(String)).
- The default value for offset is 0. It will be automatically set to default on startup and by the methods General.resetAll() or General.rebootPanelController() if the "Extras on Reset" option on the "Settings" page of iLCD Manager XEJoC Manager is set to "Clear". Selecting "Keep" allows for using the reset methods without loosing e.g. the selected language.
Extra.setMessageOffset(5);
Draw.writeTextMessage(10);
Sets the message offset to 5. The subsequently called method to write the message with index 10 will now put out the message with index 15 instead.
See also:
Copyright © demmel products gmbh. All rights reserved.