lucio69f Posted November 19, 2023 Author Share Posted November 19, 2023 but if i can use for choice the line what a fu...... does it come from and why does it work the other way? Link to comment Share on other sites More sharing options...
Andreik Posted November 19, 2023 Share Posted November 19, 2023 (edited) Because GUICtrlCreateListViewItem() is not the same thing as _GUICtrlListView_AddItem(). First function returns a control ID that can be used with GUICtrlSetBkColor() and the second function returns the item index. Edited November 19, 2023 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
lucio69f Posted November 19, 2023 Author Share Posted November 19, 2023 I propose that in the next version of optional autoit both can be returned, life would be much simpler, just one type of listview which is flexible and can do everything you need, let's simplify our lives please, now in practical i must rewrite all logic of my program i want kiiiiill me fu..... Link to comment Share on other sites More sharing options...
Nine Posted November 20, 2023 Share Posted November 20, 2023 Now you are getting very annoying. Stop whining it is too complicated for you, it is just about 15 lines of code. Start reading, testing, understanding and working. Otherwise, you will soon be alone, if not worst... argumentum 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 20, 2023 Moderators Share Posted November 20, 2023 lucio69f, Quote just one type of listview which is flexible and can do everything you need The ListView control is internal to Windows - all AutoIt does is automate the Windows API functions to (sort of) control it. Alas, it is one of the most complicated controls that Windows provides (along with scrollbars) so I can well understand your frustration. But that is not an AutoIt limitation - look at my GUIListViewEx UDF which allows you to do many things with ListViews, including colouring individual cells, editing the content, and many more. You will see it is very complex "under the hood", but I hope as easy as possible to use for the coder. M23 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 Link to comment Share on other sites More sharing options...
lucio69f Posted November 20, 2023 Author Share Posted November 20, 2023 1 hour ago, Melba23 said: The ListView control is internal to Windows - all AutoIt does is automate the Windows API functions to (sort of) control it. Alas, it is one of the most complicated controls that Windows provides (along with scrollbars) so I can well understand your frustration. But that is not an AutoIt limitation - look at my GUIListViewEx UDF which allows you to do many things with ListViews, including colouring individual cells, editing the content, and many more. You will see it is very complex "under the hood", but I hope as easy as possible to use for the coder. sorry if i ask but you udf can create inside of listview a button ? and can colored like histogram ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 20, 2023 Moderators Share Posted November 20, 2023 lucio69f, You can certainly get the UDF to run a user function when a cell is doubleclicked (close to a button) and colour individual cells. Alas, histograms are not part of the package - and I have never seen such a thing in a stock ListView, sorry. M23 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 Link to comment Share on other sites More sharing options...
lucio69f Posted November 20, 2023 Author Share Posted November 20, 2023 2 hours ago, Melba23 said: and I have never seen such a thing in a stock ListView, sorry. but you never saw also in other program languages ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 20, 2023 Moderators Share Posted November 20, 2023 lucio69f, Not in a "stock" Windows ListView - which is very obviously not the case of the control in the the image you show. That looks to me like a very customised control. M23 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 Link to comment Share on other sites More sharing options...
lucio69f Posted November 20, 2023 Author Share Posted November 20, 2023 9 hours ago, Melba23 said: Not in a "stock" Windows ListView - which is very obviously not the case of the control in the the image you show. That looks to me like a very customised control. maybe build with engine for game,, in base of your experience what you think ? be a possible? i think woulde be responsive and f ast ? 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