#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 318, 120, 166, 59)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
$Button1_text = IniRead("1.ini", @OSLang, "button", "")
$Button1 = GUICtrlCreateButton($Button1_text, 16, 64, 91, 25, $WS_GROUP)
$Label1_text = IniRead("1.ini", @OSLang, "label", "")
$Label1 = GUICtrlCreateLabel($Label1_text, 24, 24, 68, 17)
$Combo1 = GUICtrlCreateCombo("", 128, 24, 145, 25)
GUICtrlSetData($Combo1, "中文|英文")
GUICtrlSetOnEvent(-1, "Combo1Change")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
Sleep(100)
WEnd
Func Button1Click()
Exit
EndFunc ;==>Button1Click
Func Combo1Change()
$lang = GUICtrlRead($Combo1)
Switch $lang
Case "中文"
$Button1_text = IniRead("1.ini", "0804", "button", "")
$Label1_text = IniRead("1.ini", "0804", "label", "")
GUICtrlSetData($Button1, $Button1_text)
GUICtrlSetData($Label1, $Label1_text)
Case "英文"
$Button1_text = IniRead("1.ini", "0809", "button", "")
$Label1_text = IniRead("1.ini", "0809", "label", "")
GUICtrlSetData($Button1, $Button1_text)
GUICtrlSetData($Label1, $Label1_text)
EndSwitch
EndFunc ;==>Combo1Change
Func Form1Close()
Exit
EndFunc ;==>Form1Close
1.ini[0804]
button=按钮
label=标签
[0809]
button=button
label=label
|