Search found 13 matches

by icryrainix
Tue Jul 02, 2019 8:45 am
Forum: C++ Development
Topic: how to make the middle wxdataviewcolumn auto resize
Replies: 2
Views: 109

Re: how to make the middle wxdataviewcolumn auto resize

doublemax wrote:
Thu Jun 20, 2019 6:46 am
There is no built-in functionality that will do this for you. You need to catch the wxEVT_SIZE event and recalculate and set the column width for each column yourself.
Ok, got it. Thank you very much.
by icryrainix
Thu Jun 20, 2019 4:40 am
Forum: C++ Development
Topic: how to make the middle wxdataviewcolumn auto resize
Replies: 2
Views: 109

how to make the middle wxdataviewcolumn auto resize

I am trying to make the last wxDataViewColumn fixed width, and one middle wxdataviewcolumn auto resize, how can I achieve it?
Thanks.
dataviewcolumn_autosize.png
dataviewcolumn_autosize.png (56.12 KiB) Viewed 109 times
by icryrainix
Wed Jun 19, 2019 2:19 am
Forum: Component Writing
Topic: Is it possible to show autocomplete dropdown manually
Replies: 14
Views: 1025

Re: Is it possible to show autocomplete dropdown manually

The documentation for wxTextCompleterSimple::GetCompletions() states Please notice that the returned values should start with the prefix, otherwise they will be simply ignored, making adding them to the array in the first place useless. I think this makes it quite clear that your solution cannot wo...
by icryrainix
Tue Jun 18, 2019 6:25 am
Forum: Component Writing
Topic: Is it possible to show autocomplete dropdown manually
Replies: 14
Views: 1025

Re: Is it possible to show autocomplete dropdown manually

ONEEYEMAN wrote:
Mon Jun 17, 2019 2:27 pm
Hi,
I presume you want to get rid of the "z" in the auto-complete list, right?

Thank you.
I want to show all whether include "z" or not.
by icryrainix
Mon Jun 17, 2019 6:49 am
Forum: Component Writing
Topic: Is it possible to show autocomplete dropdown manually
Replies: 14
Views: 1025

Re: Is it possible to show autocomplete dropdown manually

this is the code I used to test autocomplete function with Chinese. class MyTextCompleterSimple : public wxTextCompleterSimple { public: virtual void GetCompletions(const wxString& prefix, wxArrayString& res) wxOVERRIDE { if (prefix.Contains("z")) { res.push_back("张三"); res.push_back("z张四"); res.pus...
by icryrainix
Mon Jun 17, 2019 6:39 am
Forum: Component Writing
Topic: Is it possible to show autocomplete dropdown manually
Replies: 14
Views: 1025

Re: Is it possible to show autocomplete dropdown manually

Hi, Also, what locale{s} is being installed on that system? Can you successfully type Chinese words inside a regular text editor? Thank you. I am using the locales of Chinese(Simplified, China), I can type Chinese words inside a text editor or combobox. and if I input Chinese, the autocomplete func...
by icryrainix
Mon Jun 17, 2019 6:37 am
Forum: Component Writing
Topic: Is it possible to show autocomplete dropdown manually
Replies: 14
Views: 1025

Re: Is it possible to show autocomplete dropdown manually

I can get auto completions including Chinese characters by custom wxtextcomplete, but the dropdown doesn't show automatically. If it doesn't show automatically (which an autocomplete usually does), when exactly does it show? What platform are you testing on? for example, if I input "z", the autocom...
by icryrainix
Fri Jun 14, 2019 1:32 am
Forum: Component Writing
Topic: Is it possible to show autocomplete dropdown manually
Replies: 14
Views: 1025

Re: Is it possible to show autocomplete dropdown manually

I am using built in autocomplete component, but it doesn't meet my function. I need to display different choice that without any inputs. for example, if I input "a" in combobox, but I need to show the dropdown of Chinese characters without "a". I can get auto completions including Chinese characters...
by icryrainix
Thu Jun 13, 2019 8:47 am
Forum: Component Writing
Topic: Is it possible to show autocomplete dropdown manually
Replies: 14
Views: 1025

Is it possible to show autocomplete dropdown manually

I am trying to write a custom autocomplete combobox, for example, if I input English character "a", auto completions may be other Chinese characters without "a", I can get completion arrays, but because without "a", the auto complete dropdown doesn't show. Then, how can I make the auto complete drop...
by icryrainix
Fri May 24, 2019 3:50 am
Forum: C++ Development
Topic: how to develop a autocomplete listview popup
Replies: 2
Views: 124

how to develop a autocomplete listview popup

I need a combobox with listview popup and autocomplete functions, I tested the example provided by wxwidgets library, but I can't focus the combobox while the listview is shown.

Are there any examples ? or any other suggestions?

Now I am using wxwidgets 3.1.2 under windows 10.

Thanks.
by icryrainix
Thu May 23, 2019 11:56 am
Forum: Platform Related Issues
Topic: wxDataViewCtrl issues under mac os
Replies: 6
Views: 335

Re: wxDataViewCtrl issues under mac os

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
Yes, it is done, thanks.
by icryrainix
Mon May 20, 2019 5:53 am
Forum: Platform Related Issues
Topic: wxDataViewCtrl issues under mac os
Replies: 6
Views: 335

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.
by icryrainix
Mon May 20, 2019 1:38 am
Forum: Platform Related Issues
Topic: wxDataViewCtrl issues under mac os
Replies: 6
Views: 335

wxDataViewCtrl issues under mac os

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