Search found 217 matches

by Kvaz1r
Tue May 05, 2020 12:49 pm
Forum: General Forum Issues
Topic: Error "The submitted form was invalid"
Replies: 12
Views: 2076

Re: Error "The submitted form was invalid"

Also noticed the behaviour several week ago. Didn't report because it took only for couple of hours and never happen again.
by Kvaz1r
Fri May 01, 2020 1:12 pm
Forum: C++ Development
Topic: wxGrid Difficulties
Replies: 4
Views: 229

Re: wxGrid Difficulties

You can use GetSelectedCells right now and will can use GetSelectedBlocks after 3.1.4 release.
by Kvaz1r
Wed Apr 29, 2020 3:57 pm
Forum: wxWidgets Development (Russian)
Topic: wxXmlNode и delete
Replies: 1
Views: 326

Re: wxXmlNode и delete

Да
by Kvaz1r
Mon Apr 27, 2020 8:58 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 377

Re: How to pass file name list as a function parameter!?

I mean something more straightforward:

Code: Select all

	wxArrayString  arrStrFileNames;
	arrStrFileNames.assign(vStrFileNames.begin(), vStrFileNames.end());//from std::vector<>

	std::vector<wxString> vec(arrStrFileNames.begin(), arrStrFileNames.end());//from wxArrayString
by Kvaz1r
Mon Apr 27, 2020 8:02 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 377

Re: How to pass file name list as a function parameter!?

Both class provide iterators so you can use them to create another container.
by Kvaz1r
Sun Apr 26, 2020 8:29 pm
Forum: C++ Development
Topic: How to pass file name list as a function parameter!?
Replies: 8
Views: 377

Re: How to pass file name list as a function parameter!?

Why are you want to use reference and not value type? You can share vector via wxSharedPtr<> instead or not share anything at all.
by Kvaz1r
Sun Apr 26, 2020 8:39 am
Forum: wxWidgets Development (Russian)
Topic: wxStyledTextCtrl->FindText и русские символы
Replies: 9
Views: 513

Re: wxStyledTextCtrl->FindText и русские символы

Можете показать минимальный воспроизводимый пример?
by Kvaz1r
Fri Apr 24, 2020 2:24 pm
Forum: C++ Development
Topic: wxDirDialog with multiple selections?
Replies: 9
Views: 384

Re: wxDirDialog with multiple selections?

It's not possible because wxDirDialog hold only one selected item.
by Kvaz1r
Tue Apr 21, 2020 8:18 pm
Forum: C++ Development
Topic: Adding more than one check box per item of wxListCtrl?
Replies: 5
Views: 281

Re: Adding more than one check box per item of wxListCtrl?

Use

Code: Select all

mapsPanelBoxSizer->Add( m_MapList, 1, wxEXPAND );
instead of

Code: Select all

mapsPanelBoxSizer->Add( m_MapList, 0, wxEXPAND );
Sizers Overview
by Kvaz1r
Tue Apr 21, 2020 2:16 pm
Forum: C++ Development
Topic: Adding more than one check box per item of wxListCtrl?
Replies: 5
Views: 281

Re: Adding more than one check box per item of wxListCtrl?

You can use wxDataViewListCtrl with several toggle columns.
by Kvaz1r
Tue Apr 21, 2020 6:07 am
Forum: C++ Development
Topic: [SOLVED] wxThread, std::thread, and a member function
Replies: 4
Views: 267

Re: [SOLVED] wxThread, std::thread, and a member function

You can create std::thread for a member function if also pass object to it. Example: #include <iostream> #include <thread> class foo { public: void bar(int s,int f) { for (int i = s; i < f; ++i) { std::cout << i << '\n'; } } }; int main() { foo f; std::thread t(&foo::bar, &f, 1, 5); t.join(); } Are ...
by Kvaz1r
Fri Apr 17, 2020 6:03 pm
Forum: The Code Dump
Topic: wxCreator - Another wxWidgets creator/form editor
Replies: 11
Views: 979

Re: wxCreator - Another wxWidgets creator/form editor

.Net win forms has anchor mechanism for widgets but it's not such convenient as using sizers.

I am sure that people with habit of using Qt or WinForms will glad to found familiar approach, so good luck ;-)
by Kvaz1r
Wed Apr 15, 2020 7:54 pm
Forum: C++ Development
Topic: Question about instance! With or without Frame!
Replies: 3
Views: 235

Re: Question about instance! With or without Frame!

You also have difference in return value. Change to true and let's see if it change something.