Jump to content

Can't disable/hide listview checkboxes!


 Share

Recommended Posts

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 this
GUICtrlSetState(-1,$GUI_HIDE)
or this
GUICtrlSetState(-1,$GUI_DISABLE)
Is it possible to do it? THanks in advance! Edited by PryGuy
Link to comment
Share on other sites

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

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 them

Hard 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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...