Theera Expert Licensed User Longtime User Sep 12, 2013 #1 Hi Experts, The switch library is interesting,I would like to use it,but I need to change to be my language. How do I do? (or The expert please to help for addition properties.) Thank you in advance.
Hi Experts, The switch library is interesting,I would like to use it,but I need to change to be my language. How do I do? (or The expert please to help for addition properties.) Thank you in advance.
Erel B4X founder Staff member Licensed User Longtime User Sep 12, 2013 #2 You can call setTextOn / setTextOff in the Java code to change the text.
Theera Expert Licensed User Longtime User Sep 12, 2013 #3 I'll try it. (P.S. I'm still unknown java coding)
Theera Expert Licensed User Longtime User Sep 13, 2013 #4 Hi all, I've tried all of day to setTextON/setTextOFF in java code. It's difficult to do finished,Please someone help me. Thank you in advance Attachments ThaiSwitch.zip 2.1 KB · Views: 304
Hi all, I've tried all of day to setTextON/setTextOFF in java code. It's difficult to do finished,Please someone help me. Thank you in advance
Theera Expert Licensed User Longtime User Sep 14, 2013 #5 Hi Erel, What is it should be? Please help me corrected them. B4X: public void setTextOn() { switchView.setTextOn("เปิด"); } public void setTextOff() { switchView.setTextOff("ปิด"); } Attachments NotThaiFont.png 14 KB · Views: 312 Last edited: Sep 15, 2013
Hi Erel, What is it should be? Please help me corrected them. B4X: public void setTextOn() { switchView.setTextOn("เปิด"); } public void setTextOff() { switchView.setTextOff("ปิด"); }
Erel B4X founder Staff member Licensed User Longtime User Sep 15, 2013 #6 Does it work with English letters? If yes then you need to change the Typeface to a font that supports Thai characters.
Does it work with English letters? If yes then you need to change the Typeface to a font that supports Thai characters.
Theera Expert Licensed User Longtime User Sep 16, 2013 #7 Thank you,Erel I've finished as your guide. Attachments ThaiSwitch.png 17.3 KB · Views: 274