Best control for the task

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7479
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Best control for the task

Post by ONEEYEMAN »

Hi, ALL,
Is there a control like wxListCtrl, which can have 2 columns: 1 have string and 2 have checkboxes.
The only operation available should be dragging in or out - no selection.

It looks like native wxListCtrl can have checkboxes in the first column, and wxListDVC is too big.

Thank you.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Best control for the task

Post by doublemax »

If you need 2 checkboxes, i can't think of any alternative to wxDVC. Except for dedicated controls, if the number of lines is not too big.
Use the source, Luke!
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: Best control for the task

Post by PB »

I have never tried, but at least in theory should not this be possible also with wxGrid?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7479
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Best control for the task

Post by ONEEYEMAN »

doublemax,
doublemax wrote: Thu Jan 16, 2020 10:16 am If you need 2 checkboxes, i can't think of any alternative to wxDVC. Except for dedicated controls, if the number or lines is not too big.
I was afraid someone will say that. ;-)
Looks like I will be doing a little extra work....

Thank you.
Manolo
Can't get richer than this
Can't get richer than this
Posts: 828
Joined: Mon Apr 30, 2012 11:07 pm

Re: Best control for the task

Post by Manolo »

I agree with PB, the control you need is a wxGrid.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7479
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Best control for the task

Post by ONEEYEMAN »

Hi,
wxGrid does not support DnD natively.
I'm going to use wxDVLC.

Thank you.
Post Reply