Jump to content

Search the Community

Showing results for tags 'multi languages'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hi all!. Sorry for my bad English. I am trying to create a Form with support multi languages. But I can not reload the Form as the language selected in the ComboBox. This is my code: #include <Constants.au3> #include <GUIConstants.au3> Opt('MustDeclareVars', 1) ; Global $FormTitle_lng, $LB_SELECT_lng, $CBBOX_LANGS_lng, $LB1_lng, $LB2_lng, $BT1_lng, $BT2_lng ; Set_Language_for_GUI('default') ; Global $MAIN_FORM = GUICreate($FormTitle_lng, 315, 170, -1, -1) Global $LB_SELECT = GUICtrlCreateLabel($LB_SELECT_lng, 10, 10, 93, -1) Global $CBBOX_LANGS = GUICtrlCreateCombo($CBBOX_LANGS_lng, 105, 10, 195, -1, 0x0003) GUICtrlSetData(-1, 'English|Thailand|Indonesia') Global $LB1 = GUICtrlCreateLabel($LB1_lng, 10, 40, 292, -1) Global $LB2 = GUICtrlCreateLabel($LB2_lng, 10, 72, 292, -1) Global $BT1 = GUICtrlCreateButton($BT1_lng, 10, 96, 283, -1) Global $BT2 = GUICtrlCreateButton($BT2_lng, 10, 128, 283, -1) Global $Selected GUISetState(@SW_SHOW) ; While 1 Local $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $CBBOX_LANGS $Selected = GUICtrlRead($CBBOX_LANGS) Set_Language_for_GUI($Selected) ;How to reload GUI on the event change languages of ComboBox EndSwitch WEnd ; Func Set_Language_for_GUI($MyLang) If $MyLang == 'default' Or $MyLang == 'English' Then $FormTitle_lng = 'Event on change languages' $LB_SELECT_lng = 'Select a language:' $CBBOX_LANGS_lng = 'Please select your language' $LB1_lng = 'This is Label1 for Langs to show' $LB2_lng = 'This is Label2 for Langs to show' $BT1_lng = 'Button1 for test lang' $BT2_lng = 'Button2 for test lang' ElseIf $MyLang == 'Thailand' Then $FormTitle_lng = 'เหตุการณ์บนภาษาเปลี่ยนแปลง' $LB_SELECT_lng = 'เลือกภาษา:' $CBBOX_LANGS_lng = 'กรุณาเลือกภาษาของคุณ' $LB1_lng = 'นี่คือ Label1 สำหรับภาษา' $LB2_lng = 'นี่คือ Label2 สำหรับภาษา' $BT1_lng = 'Button1 สำหรับการทดสอบภาษา' $BT2_lng = 'Button2 สำหรับการทดสอบภาษา' ElseIf $MyLang == 'Indonesia' Then $FormTitle_lng = 'Acara pada bahasa perubahan' $LB_SELECT_lng = 'Pilih bahasa:' $CBBOX_LANGS_lng = 'Silahkan pilih bahasa Anda' $LB1_lng = 'Ini adalah Label1 untuk menampilkan bahasa.' $LB2_lng = 'Ini adalah Label2 untuk menampilkan bahasa.' $BT1_lng = 'Button1 untuk menampilkan bahasa' $BT2_lng = 'Button2 untuk menampilkan bahasa' EndIf Endfunc How do I solve this problem ?. Thanks for support !.
×
×
  • Create New...