faustf Posted March 7, 2012 Share Posted March 7, 2012 hi guy i have little problem i have a gui whit a list3 i find in list a item when i founded the item insert the item in new list in popup gui. the first time the system go but when i find another ithem dont go and, when i try read a input give me only 0 value and dont find nothing this is a part of code func _cerca_X_assemblaggio() $control=$control+1 $Input10 =GUICtrlRead($Input10 ) MsgBox(0,"",$Input10) $testotrovato = _GUICtrlListView_FindinText($list3, $Input10) _GUICtrlListView_EnsureVisible($list3, $testotrovato) _GUICtrlListView_SetItemSelected($list3, $testotrovato) $test=_GUICtrlListView_GetItemTextArray($list3, $testotrovato) if $control = 1 Then popup_assemblaggio() EndIf _GUICtrlListView_AddItem($list3,$test[1]) _GUICtrlListView_AddSubItem($list3,$k, $input10,$control) $k=$k+1 ;MsgBox(0,"",$test[1]) EndFunc Func popup_assemblaggio() $Form2 = GUICreate("Popup-Assemblaggio-PC", 776, 218, 276, 92) $Group6 = GUICtrlCreateGroup("Prodotti Assemblati", 12, 54, 753, 153) $List3 = GUICtrlGetHandle(GUICtrlCreateListView("", 95, 74, 657, 123, BitOR($LVS_REPORT, $LVS_SHOWSELALWAYS), $WS_EX_CLIENTEDGE)) _GUICtrlListView_SetExtendedListViewStyle($list3, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES, $LVS_EX_SUBITEMIMAGES)) _GUICtrlListView_AddColumn($list3, "Descrizione", 300) _GUICtrlListView_AddColumn($list3, "Codice a Barre", 220) $Button3 = GUICtrlCreateButton("Cancella", 20, 76, 65, 25, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) $Label1 = GUICtrlCreateLabel("Seriale Assemblato pc ", 8, 16, 111, 17) GUISetState(@SW_SHOW) WinSetOnTop("Popup-Assemblaggio-PC", "", 1) GUICtrlSetOnEvent($button3, "_cancella_in_assemblaggio") GUISetOnEvent($GUI_EVENT_CLOSE, "_chiudi") EndFunc Link to comment Share on other sites More sharing options...
faustf Posted March 7, 2012 Author Share Posted March 7, 2012 i find a mistake 2 mistake one $Input10 =GUICtrlRead($Input10 ) NOO CORRECT = $lettocerca =GUICtrlRead($Input10 ) AND SECOND I CALL list3 all list i must call one list3 and new in poup list4 sorry Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now