273952582 发表于 2009-9-9 23:37:10

急呀,高手出来帮帮小弟呀,,怎么把左边的数字添加至右边,并删除左边的数字

本帖最后由 273952582 于 2009-9-9 23:38 编辑

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 432, 341, 192, 114)
$List1 = GUICtrlCreateList("11", 96, 32, 73, 201)
$List2 = GUICtrlCreateList("6", 224, 32, 73, 201)
$Button1 = GUICtrlCreateButton("添加>>", 176, 48, 41, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
GUICtrlSetData ($List1, "123")
GUICtrlSetData ($List1, "1kj")
While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        GUICtrlSetData ($List2, GUICtrlRead($List1))
        EndSwitch
WEnd

afan 发表于 2009-9-9 23:54:40

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 432, 341, 192, 114)
$List1 = GUICtrlCreateList("11", 96, 32, 73, 201)
$List2 = GUICtrlCreateList("6", 224, 32, 73, 201)
$Button1 = GUICtrlCreateButton("添加>>", 176, 48, 41, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
GUICtrlSetData($List1, "123")
GUICtrlSetData($List1, "1kj")
While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        If GUICtrlRead($List1) <> '' Then
                                GUICtrlSetData($List2, GUICtrlRead($List1))
                                _GUICtrlListBox_DeleteString($List1, _GUICtrlListBox_GetCurSel($List1))
                        EndIf
        EndSwitch
WEnd

afan 发表于 2009-9-9 23:56:02

怎么急得都发到未解决区了...

273952582 发表于 2009-9-10 00:03:35

谢谢兄弟,你还挺有效率的,,哎!!本人不太懂!!惭愧

afan 发表于 2009-9-10 00:04:57

如果发到提问交流区还会更有效率点...

273952582 发表于 2009-9-10 00:06:12

下次会了,非常感谢
页: [1]
查看完整版本: 急呀,高手出来帮帮小弟呀,,怎么把左边的数字添加至右边,并删除左边的数字