Resiak1811 Posted Wednesday at 09:49 PM Posted Wednesday at 09:49 PM hello Melba, quick question : if I am in editing mode (I have double-click on a item) .. if I press Esc to quit the editing mode (no change to the item), .. sound weird but I do that a lot for copy/paste the item.. should i _GUIListViewEx_Close() the listview even if nothing have change ? If $vRet <> "" Then ; rename the item else _GUIListViewEx_Close() endif thank you again
Moderators Melba23 Posted Thursday at 05:33 PM Author Moderators Posted Thursday at 05:33 PM Resiak1811, The only times you need to use the _GUIListViewEx_Close function is if the ListView has been deleted completely from the GUI, or if the content has been deleted and you are filling it again with different data. There is no need to _Close it after an aborted (or successful) Edit. M23 Resiak1811 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Resiak1811 Posted Saturday at 02:04 PM Posted Saturday at 02:04 PM so that means, if I have a empty listview on start and populate on keystroke, I put this : Local $list_Edit = _GUIListViewEx_Init($list, "", 0, 0xFF0000, False, 4 + 64 + 128 + 256 + 512) _GUIListViewEx_SetEditStatus($list_Edit, $EditStatus) after the creation of the listview and in my function, let name the func Search() : I put the _Close() like this : Func Search() _GUICtrlListView_BeginUpdate($List) _GUICtrlListView_DeleteAllItems($List) _GUIListViewEx_Close() ;~ <--------- ; some code If $aRows > 0 Then For $i = 1 To $aRows $ListItem = GUICtrlCreateListViewItem($lineText, $List) Next ;~ Local $list_Edit = _GUIListViewEx_Init($List, "", 0, 0xFF0000, False, 4 + 64 + 128 + 256 + 512) <-- also work with "" instead of the $ListItem so should I use that line instead of the next one? Local $list_Edit = _GUIListViewEx_Init($List, $ListItem, 0, 0xFF0000, False, 4 + 64 + 128 + 256 + 512) _GUIListViewEx_SetEditStatus($list_Edit, "0-2;4;6;8") Endif EndFunc Am I doing this right?
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