Quantcast
Channel: ArchiCAD-Talk - Developer Forum
Viewing all articles
Browse latest Browse all 564

How to create checkbox column in listview

$
0
0
Author:Ralph Wessel
Posted: Thu Nov 23, 2017 10:24 am (GMT+1)


IanTr wrote:
I have 2 questions:

(1) I am trying to put a column of checkboxes into my listboxes...
Currently doing something like:
DGListSetDialItemOnTabField ( IDD_BACKSYNC, GetListIDFromDialog( pEntry->GetEntryType() ), 2, DG_LIST_UNCHECKEDICON );
but not seeing any checkbox.

(2) // THIS LINE WILL CREATE A BLACK, when it should be red.
DGListSetTabItemBackgroundColor ( IDD_BACKSYNC, GetListIDFromDialog( pEntry->GetEntryType() ), DG::ListBox::BottomItem, 1, 255, 0, 0 );

1) DG_LIST_UNCHECKEDICON is the index of an icon resource, so you should apply it to a list with DGListSetTabItemIconId.

2) Try using DGListSetItemBackgroundColor.
_________________
Ralph Wessel
Cadimage


Viewing all articles
Browse latest Browse all 564

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>