User Tools

Site Tools


displaying_20unicode_20text_20in_20a_20control

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

displaying_20unicode_20text_20in_20a_20control [2018/03/31 13:19]
127.0.0.1 external edit
displaying_20unicode_20text_20in_20a_20control [2018/04/17 15:50] (current)
tbest3112 Added syntax highlighting
Line 2: Line 2:
  
 //by Richard Russell, February 2012//\\ \\  Versions 1.80 and later of [[http://​lbbooster.com/​|LB Booster]] provide built-in support to [[/​Arabic%20text%20on%20the%20mainwin%20and%20printer%20%28LBB%29|output Unicode text]] to the mainwin, and to the printer using LPRINT, but not to GUI controls. In the case of controls **other than** a TEXTEDITOR it is quite easy to support Unicode output using a little API code.\\ \\  Below is listed a program to illustrate displaying Cyrillic text in a STATICTEXT control. The **SetTextUnicode** subroutine can also be used with a BUTTON, a CHECKBOX, a GROUPBOX, a RADIOBUTTON or a TEXTBOX (ensure that you select **Unicode Support** in the Options menu):​\\ ​ //by Richard Russell, February 2012//\\ \\  Versions 1.80 and later of [[http://​lbbooster.com/​|LB Booster]] provide built-in support to [[/​Arabic%20text%20on%20the%20mainwin%20and%20printer%20%28LBB%29|output Unicode text]] to the mainwin, and to the printer using LPRINT, but not to GUI controls. In the case of controls **other than** a TEXTEDITOR it is quite easy to support Unicode output using a little API code.\\ \\  Below is listed a program to illustrate displaying Cyrillic text in a STATICTEXT control. The **SetTextUnicode** subroutine can also be used with a BUTTON, a CHECKBOX, a GROUPBOX, a RADIOBUTTON or a TEXTBOX (ensure that you select **Unicode Support** in the Options menu):​\\ ​
 +<code lb>
    ​global CP.UTF8    ​global CP.UTF8
    ​CP.UTF8 = hexdec("​FDE9"​)    ​CP.UTF8 = hexdec("​FDE9"​)
Line 36: Line 37:
      ret as long      ret as long
   end sub   end sub
 +</​code>​
displaying_20unicode_20text_20in_20a_20control.txt ยท Last modified: 2018/04/17 15:50 by tbest3112