deve Posted October 5, 2015 Author Posted October 5, 2015 (edited) Man you understand of course that I can't write your whole script - especially because I must go to bed soon Here are clues for doing what you want, you will have to adapt and integrate this to the scriptGood luck Global $aItems ; declare array to store the IDs of the listview items Func _Fill_Listview() $sGuvercinINI = @ScriptDir & '\guvercin.ini' $sections = IniReadSectionNames($sGuvercinINI) ; get section names If not @error Then GuiCtrlSendMsg($listview, $LVM_DELETEALLITEMS, 0, 0) ; clean the listview Dim $aItems[$sections[0]] ; create and size the items array For $i = 1 to $sections[0] ; loop through sections Local $aAccounts = IniRead($sGuvercinINI, $sections[$i], "Künye", "") Local $bAccounts = IniRead($sGuvercinINI, $sections[$i], "Cinsi", "") Local $cAccounts = IniRead($sGuvercinINI, $sections[$i], "Dog(um", "") ; << typo here !! Local $dAccounts = IniRead($sGuvercinINI, $sections[$i], "Durumu", "") ; create listview items $aItems[$i-1] = GUICtrlCreateListViewItem($aAccounts & "|" & $bAccounts & "|" & $cAccounts & "|" & $dAccounts, $listview) GuiCtrlSetOnEvent($aItems[$i-1], "_display") Next EndIf EndFunc Func _display() For $i = 0 to UBound($aItems)-1 ; loop through the item IDs If @GUI_CtrlId = $aItems[$i] Then ; the item was clicked ; here put the instructions to display the image and infos for this item EndIf Next EndFunc woww finally it works great with getting does values to the listview but I did not understand how do I use the second function for when clicked on a item in listviewFunc _display() For $i = 0 to UBound($aItems)-1 ; loop through the item IDs If @GUI_CtrlId = $aItems[$i] Then ; the item was clicked ; here put the instructions to display the image and infos for this item EndIf Next EndFunchow should I use this to open Form2()P:S Go SLeep I wait for you for tomorrow hehehe Edited October 5, 2015 by deve
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