PryGuy Posted June 8, 2007 Share Posted June 8, 2007 (edited) Good day everybody! I got a problem here: I create a listview $listview = GUICtrlCreateListView(" ", 20, 70, 300, 200, $LVS_NOCOLUMNHEADER + $LVS_SINGLESEL, $LVS_EX_CHECKBOXES+$LVS_EX_FLATSB) then I add a set of listview items with checkboxes:GUICtrlCreateListViewItem($ProgName[$i], $listview)It is said in the manual that the listview checkboxes act as normal ones but i can't hide or disable them doing thisGUICtrlSetState(-1,$GUI_HIDE)or thisGUICtrlSetState(-1,$GUI_DISABLE)Is it possible to do it? THanks in advance! Edited June 8, 2007 by PryGuy Link to comment Share on other sites More sharing options...
randallc Posted June 8, 2007 Share Posted June 8, 2007 Hi, try GUICtrlSendMsg($listview, $LVM_SETEXTENDEDLISTVIEWSTYLE, not $LVS_EX_CHECKBOXES, not $LVS_EX_CHECKBOXES)? Best, randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
PryGuy Posted June 8, 2007 Author Share Posted June 8, 2007 It does not hide or gray out the checkboxes but changes all checkboxes to normal text. And I do not need this! Isn't it possible just to gray out the listview checkboes as we do with the ordinary ones? Link to comment Share on other sites More sharing options...
randallc Posted June 8, 2007 Share Posted June 8, 2007 It does not hide or gray out the checkboxes but changes all checkboxes to normal text. And I do not need this! Isn't it possible just to gray out the listview checkboes as we do with the ordinary ones?So what do you really want!?but i can't hide or disable themHard to know; if you want to clear them "unticked" , that's easy.If you want tristate including disabled "grey" boxes, that's another thing; I think it has been done (certainly with direct commands to Excel checkboxes), but not sure. -maybe search "tristate" checkboxes.Best, randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW 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