Jump to content

Search the Community

Showing results for tags 'Additem'.

  • 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 Forum Here is my code: #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <WindowsConstants.au3> #Include <GuiListView.au3> #include <ListViewConstants.au3> #EndRegion ### include #Region ### START GUI section ### #Region ### Form $Form1 = GUICreate("Tests", 426, 220, 352, 147) #EndRegion ### Form #Region ### Testlist $testlist = GUICtrlCreateListView("", 56, 15, 353, 70, BitOR($WS_HSCROLL,$WS_VSCROLL,$WS_BORDER,$LVS_NOCOLUMNHEADER), 0) GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow") _GUICtrlListView_AddColumn($testlist, "",335) #Region ### -> Enter here the existing tests <- $tl_na = _GUICtrlListView_AddItem($testlist, "Set up profile (no-account)",0) $tl_oI = _GUICtrlListView_AddItem($testlist, "Set up profile (only I)",0) $tl_aS = _GUICtrlListView_AddItem($testlist, "Adjust profile (add S)",0) $tl_IS = _GUICtrlListView_AddItem($testlist, "Set up profile (IS)",0) ;~ $tl_Map = _GUICtrlListView_AddItem($testlist, "Set up 1:1 Mapping",0) ;~ $tl_mail = _GUICtrlListView_AddItem($testlist, "Send an e-mail",0) #EndRegion ### exsisttest #EndRegion ### Testlist #Region ### Test selection $testselection = GUICtrlCreateListView("", 56, 125, 353, 50, BitOR($WS_HSCROLL,$WS_VSCROLL,$WS_BORDER,$LVS_NOCOLUMNHEADER), 0) GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow") _GUICtrlListView_AddColumn($testselection, "", 335) #EndRegion ### Test selection #Region ### Buttons $test = GUICtrlCreateButton("Test", 320, 175, 90, 30, 0) GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow") $manual = GUICtrlCreateButton("Manual", 216, 175, 90, 30, 0) GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow") #EndRegion ### Buttons GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY") GUISetState(@SW_SHOW) #EndRegion ### END GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func WM_NOTIFY($hWnd, $iMsg, $iwParam, $ilParam) #forceref $hWnd, $iMsg, $iwParam Local $hWndFrom, $iIDFrom, $iCode, $tNMHDR, $hWndListView, $tInfo $hWndListView1 = GUICtrlGetHandle($testlist) $hWndListView2 = GUICtrlGetHandle($testselection) $tNMHDR = DllStructCreate($tagNMHDR, $ilParam) $hWndFrom = HWnd(DllStructGetData($tNMHDR, "hWndFrom")) $iIDFrom = DllStructGetData($tNMHDR, "IDFrom") $iCode = DllStructGetData($tNMHDR, "Code") Switch $hWndFrom Case $hWndListView1 Switch $iCode Case $NM_dblclk $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam) $text = _GUICtrlListView_GetItemText ($testlist, DllStructGetData($tInfo, "Index")) $inde = DllStructGetData($tInfo, "Index") _GUICtrlListView_DeleteItem($testlist, $inde) ;~ _GUICtrlListView_DeleteItemsSelected($testlist) _GUICtrlListView_AddItem($testselection, $text,0) EndSwitch Case $hWndListView2 Switch $iCode Case $NM_dblclk $tInfo = DllStructCreate($tagNMITEMACTIVATE, $ilParam) $text = _GUICtrlListView_GetItemText ($testselection, DllStructGetData($tInfo, "Index")) $inde = DllStructGetData($tInfo, "Index") _GUICtrlListView_DeleteItem($testselection, $inde) ;~ _GUICtrlListView_DeleteItemsSelected($testlist) _GUICtrlListView_AddItem($testlist, $text,0) EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_NOTIFY I wan't to move one Item of the List into the other List (remove in first, add in second). But DeleteItem won't work anyway.... -.- whats wrong? pls help me Spenhouet
×
×
  • Create New...