Guidance
指路人
g.yi.org
software / rapidq / Examples / Devices / keyboard / kbdLay.BAS

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
'--- Version 0.0.1
     $INCLUDE "RAPIDQ.INC"
     DECLARE FUNCTION ActivateKeyboardLayout LIB "user32" ALIAS _
      "ActivateKeyboardLayout" (BYVAL HKL AS LONG, BYVAL flags AS LONG) AS LONG

     DECLARE FUNCTION LoadKeyboardLayout LIB "user32" ALIAS _
      "LoadKeyboardLayoutA" (BYVAL pwszKLID AS STRING, BYVAL flags AS LONG) AS LONG

     Private CONST KLF_ACTIVATE = 1

'LoadKeyboardLayout "00000419", KLF_ACTIVATE 'russian
'LoadKeyboardLayout "00000409", KLF_ACTIVATE 'english'
'                    00000412"="Russian ( Koi8 )"
'                    00003409 dos

     DEFINT OldRow

     DECLARE SUB RichEditChange(Key AS BYTE)''  RichEdit1Change
     DECLARE SUB  Button1Click
     DECLARE SUB  Button2Click
     DECLARE SUB  Button3Click

     CREATE Form AS QFORM
      center
      Width=600
      Height =450

      CREATE RichEdit AS QEDIT
       Width=400
       Height =300
      END CREATE


      CREATE Button1 AS QBUTTON
       CAPTION = "Russian"
       Left = 450
       Top = 140
       Width = 88
       Height = 33
       OnClick = Button1Click

      END CREATE

      CREATE Button2 AS QBUTTON
       CAPTION = "English"
       Left = 450
       Top = 200
       Width = 88
       Height = 33
       OnClick = Button2Click
      END CREATE

     END CREATE


     Form.SHOWMODAL


     SUB  Button1Click
      LoadKeyboardLayout "00000419", KLF_ACTIVATE
     END SUB

     SUB  Button2Click
      LoadKeyboardLayout "00000409", KLF_ACTIVATE
     END SUB

     SUB  Button3Click
'RichEdit.Font.Name= "Arial KOI-8"
      LoadKeyboardLayout "00000412", KLF_ACTIVATE
     END SUB


掌柜推荐
 
 
¥860.00 ·
 
 
¥410.00 ·
 
 
¥288.00 ·
 
 
¥918.00 ·
 
 
¥288.00 ·
 
 
¥264.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2003-07-02 13:14:00