EditorGadget & Unicode
Posted: Thu Nov 08, 2012 10:38 am
Hi,
some characters are not displayed correctly in unicode compilation...
Code to be compiled in unicode :
PeekS() doesn't work for this problem.
How can i display chars correctly ?
Thanks
some characters are not displayed correctly in unicode compilation...
Code to be compiled in unicode :
Code: Select all
If OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
EditorGadget(0, 8, 8, 306, 133)
L$ ="euro="+Chr(128)+" oe="+Chr(156)+#CRLF$
For a = 128 To 255
L$ + Chr(a) + " "
Next
; SendMessage_( GadgetID( 0), #WM_SETTEXT, 0, @L$) ; Same result
SetGadgetText(0,L$)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
How can i display chars correctly ?
Thanks