dataviewctrl

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
Wolfgang
Experienced Solver
Experienced Solver
Posts: 92
Joined: Mon Jan 28, 2019 8:22 am

dataviewctrl

Post by Wolfgang » Wed Aug 07, 2019 5:02 am

Hello

Is there a easy way to switch the col and row in showing (switch horizontal with vertical)? Meaning I will have different numbers of colunms. And in every row there will be a different source, but each row will have the same number of columns.

Usually you have it like this:

datasource1 datasource2 datasource3
1 1a 1aa
2 2a 2aa
3 3a 3aa[/quote]
But I want:

datasource1 1 2 3
datasource2 1a 2a 3a
datasource3 1aa 2aa 3aa

Wolfgang
Experienced Solver
Experienced Solver
Posts: 92
Joined: Mon Jan 28, 2019 8:22 am

Re: dataviewctrl

Post by Wolfgang » Wed Aug 07, 2019 6:12 am

What I forgot to ask, is it possible to show htmllistbox also inside a dataviectrl? As one of the sources should be shown as html text.

User avatar
doublemax
Moderator
Moderator
Posts: 13902
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: dataviewctrl

Post by doublemax » Wed Aug 07, 2019 7:43 am

Is there a easy way to switch the col and row in showing (switch horizontal with vertical)?
No, you'll have to adjust your model accordingly.
What I forgot to ask, is it possible to show htmllistbox also inside a dataviectrl? As one of the sources should be shown as html text.
Not easily. You'd have to create a new DVC renderer using wxHtmlDCRenderer.
Use the source, Luke!

Wolfgang
Experienced Solver
Experienced Solver
Posts: 92
Joined: Mon Jan 28, 2019 8:22 am

Re: dataviewctrl

Post by Wolfgang » Wed Aug 07, 2019 7:57 am

doublemax wrote:
Wed Aug 07, 2019 7:43 am
Is there a easy way to switch the col and row in showing (switch horizontal with vertical)?
No, you'll have to adjust your model accordingly.
Thanks, I feared that already, and had the same idea to rewrite the model, so that it will write the right things in the rows, and also add the needed columns. So that should be possible.
doublemax wrote:
Wed Aug 07, 2019 7:43 am
What I forgot to ask, is it possible to show htmllistbox also inside a dataviectrl? As one of the sources should be shown as html text.
Not easily. You'd have to create a new DVC renderer using wxHtmlDCRenderer.
Here I understand what you mean, but have no idea how to achieve it.

Post Reply