Hawkysoft Posted October 9, 2014 Posted October 9, 2014 Hey all, Since I'm playing with listviews atm I stumbled at the ugly part when you click a column it get's highlighted, is there anyway that when I click on a column it doesn't get highlighted? with regards, Hawkysoft
Solution Zedna Posted October 12, 2014 Solution Posted October 12, 2014 Look at this '?do=embed' frameborder='0' data-embedContent>> On the similar princip you can acomodate it to your specific needs. LarsJ and Hawkysoft 2 Resources UDF ResourcesEx UDF AutoIt Forum Search
LarsJ Posted October 13, 2014 Posted October 13, 2014 Zedna, I see that you like this solution. I like it myself.Hawkysoft, If you mean the light gray background typically used for sorted listviews to indicate the column which is used for the current sorting, then there is an easy solution.Take a look at the examples for GUICtrlRegisterListViewSort in the help file. These example creates this gray background. Find the while loop. To get rid of the gray background just comment away the two lines as shown in the code box:Case $lv $bSet = 0 $nCurCol = $nCol ;GUICtrlSendMsg($lv, $LVM_SETSELECTEDCOLUMN, GUICtrlGetState($lv), 0) ;DllCall("user32.dll", "int", "InvalidateRect", "hwnd", ControlGetHandle($hGUI, "", $lv), "int", 0, "int", 1) Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions
Zedna Posted October 13, 2014 Posted October 13, 2014 Zedna, I see that you like this solution. I like it myself. Yes. I like it VERY MUCH! I have implemented it into one of my projects so I'm very happy now :-) Thanks for nice and elegant solution Resources UDF ResourcesEx UDF AutoIt Forum Search
LarsJ Posted October 13, 2014 Posted October 13, 2014 You are welcome. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions
Zedna Posted October 13, 2014 Posted October 13, 2014 I have been familiar with ListView CUSTOMDRAW already (use it in my projects) so it was only few lines of your code, which were new to me ;-) As I said, very elegant solution. I like to learn new elegant code snipets, especially in GUI parts and such very good lesson from your nice code was the best one in several previous years for me :-) Resources UDF ResourcesEx UDF AutoIt Forum Search
Hawkysoft Posted October 18, 2014 Author Posted October 18, 2014 Thank you Zedna for pointing me out, and Lars you for creating that super example! sorry for the late reaction btw, been busy irl
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