Jump to content

checkbox inside a listview, possible & how?


Recommended Posts

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

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().
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...