Search found 158 matches

by Ronald
Wed Oct 30, 2019 7:41 pm
Forum: C++ Development
Topic: text ctrl with a clear button?
Replies: 1
Views: 117

text ctrl with a clear button?

QLineEdit_WithClearButton.png
QLineEdit_WithClearButton.png (1.04 KiB) Viewed 117 times
Any control like this?
Convenient in some case, due to habits.
by Ronald
Mon Oct 28, 2019 11:13 am
Forum: Compiler / Linking / IDE Related
Topic: link failed on Linux
Replies: 4
Views: 111

Re: link failed on Linux

Done.
After add all the other lib dependencies, it still reports errors, rebuild all solve the problem.
by Ronald
Mon Oct 28, 2019 9:48 am
Forum: Compiler / Linking / IDE Related
Topic: link failed on Linux
Replies: 4
Views: 111

Re: link failed on Linux

I've copied the output of `wx-config-gtk3 --libs`, no problem about wx now. This works -lwx_gtk3u_xrc-3.0 -lwx_gtk3u_webview-3.0 -lwx_gtk3u_adv-3.0 -lwx_gtk3u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -lwx_gtk3u_aui-3.0 But there are problems by other libs, so I'm not sure. I'll ...
by Ronald
Mon Oct 28, 2019 9:40 am
Forum: Compiler / Linking / IDE Related
Topic: link failed on Linux
Replies: 4
Views: 111

Re: link failed on Linux

doublemax wrote:
Mon Oct 28, 2019 8:46 am
Try adding -lwx_gtk3u_base-3.0 to the list.
/usr/bin/ld: cannot find -lwx_gtk3u_base-3.0
by Ronald
Mon Oct 28, 2019 8:31 am
Forum: Compiler / Linking / IDE Related
Topic: link failed on Linux
Replies: 4
Views: 111

link failed on Linux

/usr/bin/ld: obj/Debug/UI/MainFrame/MainFrame.o: undefined reference to symbol '[email protected]@WXU_3.0' /usr/bin/ld: /usr/lib/libwx_baseu-3.0.so.0: error adding symbols: DSO missing from command line clang-9: error: linker command failed with exit code 1 (use -v to see invocation) link opt...
by Ronald
Mon Oct 21, 2019 3:40 am
Forum: C++ Development
Topic: Is wxWindow::HandleWindowEvent safe for multithreading
Replies: 1
Views: 168

Is wxWindow::HandleWindowEvent safe for multithreading

In working thread call wxWindow::HandleWindowEvent to updtae UI, is it safe?
by Ronald
Wed Oct 16, 2019 9:52 am
Forum: C++ Development
Topic: wxScrolledWindow is slow when scrolling through long text
Replies: 14
Views: 788

Re: wxScrolledWindow is slow when scrolling through long text

Why if I use event.Skip(false) in an EVT_PAINT, the wxWindow would still get painted normally? Why can't I stop the wxWindow from getting painted in an EVT_PAINT? If the parent window paints on the child window, add style wxCLIP_CHILDREN to the parent. But generally wxCLIP_CHILDREN is used to avoid...
by Ronald
Wed Oct 16, 2019 1:36 am
Forum: C++ Development
Topic: wxScrolledWindow is slow when scrolling through long text
Replies: 14
Views: 788

Re: wxScrolledWindow is slow when scrolling through long text

How many wxStaticText are there? It could be this unresolved problem: http://trac.wxwidgets.org/ticket/15766 About 10-20, some of them are short texts, some are long... It is also slow on Windows 7, so that ticket might not be related I guess. I agree. Can you show the code? modifed samples/minimal...
by Ronald
Wed Oct 16, 2019 12:04 am
Forum: C++ Development
Topic: wxScrolledWindow is slow when scrolling through long text
Replies: 14
Views: 788

Re: wxScrolledWindow is slow when scrolling through long text

Another solution, draw the texts in EVT_PAINT handler directly.
It's not hard,faster than wxStaticText that works properly.

However, the probem should be investigated, it may be a bug of efficiency, even related to other controls that is not obvious in common use.
I'll dig it.
by Ronald
Tue Oct 15, 2019 4:10 pm
Forum: C++ Development
Topic: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?
Replies: 13
Views: 321

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

The "virtuality" happens by deriving from wxGridTableBase and then setting it with wxGrid::SetTable(). https://docs.wxwidgets.org/trunk/classwx_grid_table_base.html#a4233348a081a46dabadb6b2dd2cfb972 It's great. BTW, wxGridTableBase is not as a base class of wxGrid, it's ok, wxGrid is not intended t...
by Ronald
Tue Oct 15, 2019 3:42 pm
Forum: C++ Development
Topic: Hoa to display row number in a wxListCtrl of type wxLC_REPORT virual mode?
Replies: 13
Views: 321

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

Let me repeat it - wxGrid by definition IS virtual. Yes. Just for technic, for example, 10^10 rows * 10^10 columns, common random access may not be efficient enough. Then a sophisticated solution in demand: use multithread to locate the data for displaying most recent used data searched first any o...
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: 321

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: 321

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: 321

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: 223

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 ...