Columns with checkboxes
-
Hello, I have a question concerning VC++ and columns and checkboxes. This I'm assuming is a common hurdle to jump when building a GUI. I want to to have a graphical interface that shows a list of columns. The first column, describes the item the following columns could A,B,C etc but are "checkbox" columns that will profile the item in the first column. I went down the merry path of looking into CListControl in MFC that has a column and by setting the style to CHECKBOX you can have a single item with one checkbox, nice to know. Not what I need. Datagrid looks like that is what I need, but I dont see this in MFC. Can somebody point me to an example and even tell me if this is what I need. Thanks in advance, Garyc
-
Hello, I have a question concerning VC++ and columns and checkboxes. This I'm assuming is a common hurdle to jump when building a GUI. I want to to have a graphical interface that shows a list of columns. The first column, describes the item the following columns could A,B,C etc but are "checkbox" columns that will profile the item in the first column. I went down the merry path of looking into CListControl in MFC that has a column and by setting the style to CHECKBOX you can have a single item with one checkbox, nice to know. Not what I need. Datagrid looks like that is what I need, but I dont see this in MFC. Can somebody point me to an example and even tell me if this is what I need. Thanks in advance, Garyc
Have a look at this article [^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Have a look at this article [^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Much appreciated. I will have a gander at this.
-
Hello, I have a question concerning VC++ and columns and checkboxes. This I'm assuming is a common hurdle to jump when building a GUI. I want to to have a graphical interface that shows a list of columns. The first column, describes the item the following columns could A,B,C etc but are "checkbox" columns that will profile the item in the first column. I went down the merry path of looking into CListControl in MFC that has a column and by setting the style to CHECKBOX you can have a single item with one checkbox, nice to know. Not what I need. Datagrid looks like that is what I need, but I dont see this in MFC. Can somebody point me to an example and even tell me if this is what I need. Thanks in advance, Garyc
I've used XListCtrl, from here at CP, many times.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Hello, I have a question concerning VC++ and columns and checkboxes. This I'm assuming is a common hurdle to jump when building a GUI. I want to to have a graphical interface that shows a list of columns. The first column, describes the item the following columns could A,B,C etc but are "checkbox" columns that will profile the item in the first column. I went down the merry path of looking into CListControl in MFC that has a column and by setting the style to CHECKBOX you can have a single item with one checkbox, nice to know. Not what I need. Datagrid looks like that is what I need, but I dont see this in MFC. Can somebody point me to an example and even tell me if this is what I need. Thanks in advance, Garyc
You can use the subitem-image to display the checkbox. Just copy the state-images to the official image-list, and react to mouse-click on the subitem-image to change the checkbox. I have implemented this on CGridListCtrlEx - Grid Control Based on CListCtrl[^]