找回密码
 加入
搜索
查看: 1708|回复: 5

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

[复制链接]
发表于 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
发表于 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
发表于 2009-9-9 23:56:02 | 显示全部楼层
怎么急得都发到未解决区了...
 楼主| 发表于 2009-9-10 00:03:35 | 显示全部楼层
谢谢兄弟,你还挺有效率的,,哎!!本人不太懂!!惭愧
发表于 2009-9-10 00:04:57 | 显示全部楼层
如果发到提问交流区还会更有效率点...
 楼主| 发表于 2009-9-10 00:06:12 | 显示全部楼层
下次会了,非常感谢
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-22 21:35 , Processed in 0.080796 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表