Author Topic: True Unicode  (Read 1854 times)

jj2007

  • Member
  • *****
  • Posts: 9644
  • Assembler is fun ;-)
    • MasmBasic
True Unicode
« on: June 19, 2014, 08:53:10 AM »
Inspired by this post, I wondered whether it was possible to use languages with exotic alphabets directly from the editor. Example:

include \masm32\MasmBasic\MasmBasic.inc      ; download
  Init
  uInkey "Введите текст здесь"
  Exit
end start


Guess what? It works! Paste the snippet in RichMasm, hit Ctrl F6 and click 'Yes'.

jj2007

  • Member
  • *****
  • Posts: 9644
  • Assembler is fun ;-)
    • MasmBasic
Мне нужно немного помочь с русским
« Reply #1 on: June 23, 2014, 07:58:49 AM »
Hi folks,

I am working on the next version of my IDE, and I wanted a true Unicode example. Could you give me a quick feedback if the menu strings are correct?

Thanks,
JJ


  SWITCH uMsg
  CASE WM_CREATE   ; this message serves to initialise your application
   mov esi, rv(CreateMenu)   ; create the main menu
   mov edi, rv(CreateMenu)   ; create a sub-menu
   invoke AppendMenuW, esi, MF_POPUP, edi, uCat$("Файл")         ; add it to the main menu
   invoke AppendMenuW, edi, MF_STRING, 101, uCat$("Открыть")      ; and add
   invoke AppendMenuW, edi, MF_STRING, 102, uCat$("Сохранить")    ; two items
   mov edi, rv(CreateMenu)   ; create a sub-menu
   invoke AppendMenuW, esi, MF_POPUP, edi, uCat$("Редактировать")   ; add it to the main menu
   invoke AppendMenuW, edi, MF_STRING, 103, uCat$("Копировать")   ; and add
   invoke AppendMenuW, edi, MF_STRING, 104, uCat$("Вставить")    ; two items
   invoke SetMenu, hWnd, esi            ; attach menu to main window
...
  CASE WM_CLOSE   ; decide whether to close or not
      uMsgBox 0, "Вы уверены, что хотите закрыть эту программу?", "Hi", MB_YESNO
« Last Edit: June 23, 2014, 05:44:03 PM by jj2007 »

GoneFishing

  • Member
  • *****
  • Posts: 1071
  • Gone fishing
Re: True Unicode
« Reply #2 on: June 23, 2014, 04:03:10 PM »
Hi Jochen,
All the menu strings are correct  :t