ProgrammerKid Posted April 19, 2012 Share Posted April 19, 2012 On-Topic: Cool scriptOff-Topic: Can someone help me in my first topic? Thanks, sorry if this is called spam. Link to comment Share on other sites More sharing options...
footswitch Posted April 19, 2012 Author Share Posted April 19, 2012 About the last script posted by rover, here's a quick fix for multi-selection (replace the declaration of $bSelected and adjust the If statement) Local $bSelected = GUICtrlSendMsg($cID, $LVM_GETITEMSTATE, $itmID, $LVIS_SELECTED) <> 0 If $bSelected Then $iTxtCol = 0x494949 DllCall($iDllUSER32, "int", "FillRect", "handle", $hDC, "ptr", DllStructGetPtr($tDRAWITEMSTRUCT, "itmRect"), "handle", $hBrush) Else $iTxtCol = 0xB79588 EndIf Link to comment Share on other sites More sharing options...
rover Posted April 19, 2012 Share Posted April 19, 2012 (edited) About the last script posted by rover, here's a quick fix for multi-selection (replace the declaration of $bSelected and adjust the If statement) Local $bSelected = GUICtrlSendMsg($cID, $LVM_GETITEMSTATE, $itmID, $LVIS_SELECTED) <> 0 If $bSelected Then $iTxtCol = 0x494949 DllCall($iDllUSER32, "int", "FillRect", "handle", $hDC, "ptr", DllStructGetPtr($tDRAWITEMSTRUCT, "itmRect"), "handle", $hBrush) Else $iTxtCol = 0xB79588 EndIf @footswitch Good to hear you like it. I came up with the idea of theming selected items a few years back. A bit of a misuse to use the button theme, but it works in XP on up. The listview theme in Vista and up has a group item glass theme part that could also be used, check MSDN and the vsstyle.h file for parts and states constants. The sendmessage call is not needed, the ODS_SELECTED section was coded improperly. I've corrected that in both examples and added a few fixes and a themed select bar demonstration to the second example. @UEZ Thanks Edited April 19, 2012 by rover I see fascists... Link to comment Share on other sites More sharing options...
KaFu Posted April 19, 2012 Share Posted April 19, 2012 Really nice example with lots of ideas to follow-up on, 5 stars from me too (maybe you repost it in the examples forum too) ... Â OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13)Â BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16)Â ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
footswitch Posted April 19, 2012 Author Share Posted April 19, 2012 (edited) Sweet Jesus. Edited April 19, 2012 by footswitch Link to comment Share on other sites More sharing options...
rover Posted April 19, 2012 Share Posted April 19, 2012 (edited) Sweet Jesus.Just one last thingAdded combo for Button or Listview theme parts with resize of Listview theme parts as they are 1 pixel larger than Button partsBtw, the Listview group header theme parts have a better gradient than Button parts in Vista+Really nice example with lots of ideas to follow-up on, 5 stars from me too (maybe you repost it in the examples forum too) ..ThanksIt's a good enough example/guideline for people to code their own implementation. Edited April 19, 2012 by rover I see fascists... Link to comment Share on other sites More sharing options...
AndreyS Posted August 22, 2013 Share Posted August 22, 2013 Greetings to all the participants! Maybe someone knows how to do so long elements were fully visible and appear in a few lines in ListView? Maybe there is a special property? After all, it is obviously necessary and useful. 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