WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Unicode

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Unicode in WIL Dialog

 Keywords: Unicode Font Character Dialog Smily Face 

Question:

How can I display the unicode smily face character?

Answer:

Here is some sample code that can display the smily face in the WIL Dialog using a Unicode font. Note you must use a unicode font in your dialog if you wnat to display Unicode characters.:
strSmiley = ChrHexToUnicode( "3a26" ) ;Hex value for Unicode smily face

UnicodeTestFormat=`WWWDLGED,6.2`

UnicodeTestCaption=`Test Smily Face`
UnicodeTestX=059
UnicodeTestY=103
UnicodeTestWidth=137
UnicodeTestHeight=094
UnicodeTestNumControls=003
UnicodeTestProcedure=`DEFAULT`
UnicodeTestFont=`DEFAULT`
UnicodeTestTextColor=`DEFAULT`
UnicodeTestBackground=`DEFAULT,DEFAULT`
UnicodeTestConfig=0

UnicodeTest001=`014,066,034,011,PUSHBUTTON,"PushButton_Ok",DEFAULT,"OK",1,1,32,DEFAULT,DEFAULT,DEFAULT`
UnicodeTest002=`079,066,035,011,PUSHBUTTON,"PushButton_Cancel",DEFAULT,"Cancel",0,2,DEFAULT,"Arial Unicode MS|5632|40|34","0|0|0",DEFAULT`
UnicodeTest003=`017,009,094,020,VARYTEXT,"VaryText_1",strSmiley,DEFAULT,DEFAULT,3,DEFAULT,"Arial Unicode MS|5325|40|34","0|0|0",DEFAULT`

ButtonPushed=Dialog("UnicodeTest")


Article ID:   W18422
Filename:   Unicode in WIL Dialog.txt
File Created: 2009:04:07:09:16:24
Last Updated: 2009:04:07:09:16:24