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

Next revision
Previous revision
displaying_20unicode_20text_20in_20a_20control [2018/03/31 13:19] – external edit 127.0.0.1displaying_20unicode_20text_20in_20a_20control [2024/01/05 00:22] (current) – external edit 127.0.0.1
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.1522502357.txt.gz · Last modified: 2024/01/05 00:18 (external edit)