grasshopper3 Posted August 8, 2010 Share Posted August 8, 2010 I would like to create a list view where one of the elements of an item and a usable checkbox. Is this possible? Link to comment Share on other sites More sharing options...
KaFu Posted August 8, 2010 Share Posted August 8, 2010 Take a look at the _GUICtrlListView_Create() function, esp. the flag $LVS_EX_CHECKBOXES. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
grasshopper3 Posted August 9, 2010 Author Share Posted August 9, 2010 i found what you are talking about but i am unable to get it working. Could you give me some code with a working item. I tried.. #include <GUIListView.au3> $gui = GuiCreate("listview",400,300) $sHeaderText = "Drive|Device|Password|Share|Share Path" $handle = _GUICtrlListView_Create($gui,$sHeaderText,10,10,380,280,$LVS_EDITLABELS,$LVS_EX_CHECKBOXES) $view = _GUICtrlListView_AddItem($handle, "hello|world") GuiSetState() While 1 $msg=GuiGetMsg() If $msg=-3 Then Exit Wend Link to comment Share on other sites More sharing options...
Yashied Posted August 9, 2010 Share Posted August 9, 2010 _GUICtrlListView_SetExtendedListViewStyle($handle, $LVS_EX_CHECKBOXES) My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
grasshopper3 Posted August 9, 2010 Author Share Posted August 9, 2010 _GUICtrlListView_SetExtendedListViewStyle($handle, $LVS_EX_CHECKBOXES) This does do what I wanted, but is there a way to put the check box in any other column besides the first column? Link to comment Share on other sites More sharing options...
KaFu Posted August 9, 2010 Share Posted August 9, 2010 This does do what I wanted, but is there a way to put the check box in any other column besides the first column?AFAIK sadly not (same for Icons). A work around I use in SMF is to resort the columns with _GUICtrlListView_SetColumnOrder(). OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Zedna Posted August 9, 2010 Share Posted August 9, 2010 AFAIK sadly not (same for Icons). A work around I use in SMF is to resort the columns with _GUICtrlListView_SetColumnOrder().There are scripts on the forum for the icons in other columnsbut for checkboxes really no. Resources UDF ResourcesEx UDF AutoIt Forum Search 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