I found wxDataViewCtrl just inherited from wxDataViewCtrlBase under Mac OSX, but under Windows, it is inherited from wxDataViewCtrlBase and wxScrollHelper, I am wondering, is it possible to make wxDataViewCtrl inherited from wxDataViewCtrlBase and wxScrollHelper under Mac OSX, same as Windows? and How can I?
thanks.
wxDataViewCtrl issues under mac os
-
- Earned a small fee
- Posts: 13
- Joined: Mon May 20, 2019 1:31 am
Re: wxDataViewCtrl issues under mac os
No. wxDataViewCtrl under OSX is a wrapper around a native control. Windows doesn't have a native control for that purpose, so wxWidgets uses a generic implementation there.icryrainix wrote: ↑Mon May 20, 2019 1:38 am I found wxDataViewCtrl just inherited from wxDataViewCtrlBase under Mac OSX, but under Windows, it is inherited from wxDataViewCtrlBase and wxScrollHelper, I am wondering, is it possible to make wxDataViewCtrl inherited from wxDataViewCtrlBase and wxScrollHelper under Mac OSX, same as Windows?
Why do you want that, what are you trying to do?
Use the source, Luke!
-
- Earned a small fee
- Posts: 13
- Joined: Mon May 20, 2019 1:31 am
Re: wxDataViewCtrl issues under mac os
I want to hide scrollbar of wxDataViewCtrl under mac os, under windows platform, I can use showscrollbars() to hide it, but under mac os, how can I do it?
Thank you very much for your help.
Thank you very much for your help.
Re: wxDataViewCtrl issues under mac os
Hi,
You can try to call SetSize() on it.
How to calculate the proper size is a different issue though...
Thank you.
You can try to call SetSize() on it.
How to calculate the proper size is a different issue though...
Thank you.
Re: wxDataViewCtrl issues under mac os
I don't think that's possible with the native control. But if you don't want scrollbars, you probably only have a fixed, small number of items to display. Does wxGrid work for your purpose? It's a generic control, so you have more control over it,
Use the source, Luke!
Re: wxDataViewCtrl issues under mac os
As a last resource, you can use the generic version instead of the native one.
For this, use two "define" and rebuild wxWidgets. See viewtopic.php?t=41995#p169933
For this, use two "define" and rebuild wxWidgets. See viewtopic.php?t=41995#p169933
-
- Earned a small fee
- Posts: 13
- Joined: Mon May 20, 2019 1:31 am
Re: wxDataViewCtrl issues under mac os
Yes, it is done, thanks.Manolo wrote: ↑Mon May 20, 2019 6:17 pm As a last resource, you can use the generic version instead of the native one.
For this, use two "define" and rebuild wxWidgets. See viewtopic.php?t=41995#p169933