Search found 162 matches

by Ronald
Tue Oct 15, 2019 2:37 pm
Forum: C++ Development
Topic: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?
Replies: 13
Views: 1647

Re: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?

Technically wxGrid is always virtual, it just uses a simple default wxGridTableBase as data source which is just an array of array of strings. Therefore random access to cell contents is fast. wxGrid is professional inside, and meet the demand. However no virtual mode interface, no support for spec...
by Ronald
Tue Oct 15, 2019 1:18 pm
Forum: C++ Development
Topic: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?
Replies: 13
Views: 1647

Re: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?

How huge is a "huge"? Are we talking Google-level data or? I don't known how big the data should be to show significant difference between wxListCtrl (virutal mode) and wxGrid. wxGrid may be efficient enough for common big data. So huge data for testing only. The result might be one is easier to us...
by Ronald
Tue Oct 15, 2019 6:41 am
Forum: C++ Development
Topic: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?
Replies: 13
Views: 1647

Re: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?

wxGrid does not need to be virtual. It can handle big number of data by itself. And row header is of course not native - the whole control is generic. So please elaborate what you mean. If wxGrid supports huge data, it's a plus. But I still prefer virtual mode of wxListCtrl/wxListView, reason: the ...
by Ronald
Tue Oct 15, 2019 4:07 am
Forum: Compiler / Linking / IDE Related
Topic: about vscode
Replies: 0
Views: 2264

about vscode

Considering habit, I'd like to choose a code editor that support many programming languages. vscode is popular, or better vscodium ( https://github.com/VSCodium/vscodium ) without telemetry. However I encounter a problem. I have to modify the build script when adding/removing/moving source files. A ...
by Ronald
Tue Oct 15, 2019 3:21 am
Forum: C++ Development
Topic: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?
Replies: 13
Views: 1647

Re: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?

There is no dedicated rowlabel area in wxListCtrl. The best you could do is to display the row number in the first column. I have the demand too, with wxListCtrl, to make col and row headers same style, I have to hide column headers, override OnGetItemColumnAttr . When supporting sorting (common de...
by Ronald
Tue Oct 15, 2019 3:11 am
Forum: C++ Development
Topic: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?
Replies: 13
Views: 1647

Re: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?

I want to diplay the rownber like the way wxGird does it GetRowLabelValue (int row) const. Is there an API function or this will require custom coding? I'm finding something like this recently, none. wxListCtrl support virtual mode no native row header wxGrid support native row header no virtual mo...
by Ronald
Tue Oct 15, 2019 3:00 am
Forum: C++ Development
Topic: wxScrolledWindow is slow when scrolling through long text
Replies: 14
Views: 1710

Re: wxScrolledWindow is slow when scrolling through long text

One case, wxStaticText calc its size to fit the text by default, try wxST_NO_AUTORESIZE. But that only happens once, am I right? Or does it keep happening as long as wxScrolledWindow scrolls through text? So wxStaticText keeps thinking it is being redrawn when it is scrolled through? Boundbox size ...
by Ronald
Tue Oct 15, 2019 2:08 am
Forum: C++ Development
Topic: Is wxListCtrl crossplatform?
Replies: 16
Views: 1638

Re: Is wxListCtrl crossplatform?

Hi, Vadim is extremely busy right now - he is trying to prepare the release and review as much code as possible. And wxWidgets is not the only project he is managing (mostly by himself). Just give him time. If he will not respond after release - you can send an e-mail to wx-users ML. Thank you. OK,...
by Ronald
Tue Oct 15, 2019 2:07 am
Forum: C++ Development
Topic: wxScrolledWindow is slow when scrolling through long text
Replies: 14
Views: 1710

Re: wxScrolledWindow is slow when scrolling through long text

Hi, I have a wxScrolledWindow widget that has a number of wxStaticText widgets with long texts. On Windows (GTK doesn't have this problem), the scrolling would become slow when going through texts that have a somehow big number of lines. How can I make it faster? Is there a way to enable hardware a...
by Ronald
Tue Oct 15, 2019 1:19 am
Forum: C++ Development
Topic: Is wxListCtrl crossplatform?
Replies: 16
Views: 1638

Re: Is wxListCtrl crossplatform?

I do not think he is ignoring you. Vadim is just extremely busy. When I filed a bug, he responded much more quickly. However I don't think he is intended to ingore me. When I found he committed code step by step, I thought he was strict and for quality. I appreciate the way. So a new but related is...
by Ronald
Mon Oct 14, 2019 5:33 pm
Forum: C++ Development
Topic: Is wxListCtrl crossplatform?
Replies: 16
Views: 1638

Re: Is wxListCtrl crossplatform?

What kind of API extension are you suggesting? Implementing it for MSW and the generic version would cover all major platforms. void ShowSortIndicator(unsigned int idx, bool sortOrder = true) { HWND hLC = GetHWND(); HWND hLCH = (HWND)ListView_GetHeader(hLC); HDITEMW hdiOld = { 0 }; { hdiOld.mask = ...
by Ronald
Mon Oct 14, 2019 4:47 pm
Forum: C++ Development
Topic: Is wxListCtrl crossplatform?
Replies: 16
Views: 1638

Re: Is wxListCtrl crossplatform?

Hi, OK, so you are looking to create a new event and basically modify msw/listctrl.{cpp,h} and generic/listctrl{cpp,h}. Thank you. According to #if defined(__WXMSW__) && !defined(__WXUNIVERSAL__) #include "wx/msw/listctrl.h" #elif defined(__WXQT__) && !defined(__WXUNIVERSAL__) #include "wx/qt/listc...
by Ronald
Mon Oct 14, 2019 4:41 pm
Forum: C++ Development
Topic: Is wxListCtrl crossplatform?
Replies: 16
Views: 1638

Re: Is wxListCtrl crossplatform?

doublemax wrote:
Mon Oct 14, 2019 3:33 pm
Ronald wrote:
Mon Oct 14, 2019 12:49 pm
What's the standard to keep wxListCtrl crossplatform? The doc?
Yes
It's clear, flexible.

Thanks
by Ronald
Mon Oct 14, 2019 4:32 pm
Forum: C++ Development
Topic: Is wxListCtrl crossplatform?
Replies: 16
Views: 1638

Re: Is wxListCtrl crossplatform?

But all this shouldn't concern you - it is implementation detail. Unless you working on the wxWidgets itself. I'm considering to do some pulll request. wxListCtrl/wxListView currently not support sort header indicator in virtual mode, so I'd like to add the feature. BTW, SetColumnImage can add an i...
by Ronald
Mon Oct 14, 2019 12:49 pm
Forum: C++ Development
Topic: Is wxListCtrl crossplatform?
Replies: 16
Views: 1638

Re: Is wxListCtrl crossplatform?

wxListCtrl is available and usable on all platforms, but only under Windows a native control will be used for it. While each wxListctrl derived from wxListCtrlBase, they have their own public functions, non virtual, like: bool GetItem( wxListItem& info ) const; bool SetItem( wxListItem& info ) ; bo...