Search found 217 matches

by Kvaz1r
Tue Apr 14, 2020 5:38 pm
Forum: C++ Development
Topic: wxAuiManager: setting pane sizes
Replies: 7
Views: 353

Re: wxAuiManager: setting pane sizes

Maybe workaround from this ticket wxAui - programmatically resize panels will works for you?
by Kvaz1r
Tue Apr 14, 2020 7:07 am
Forum: C++ Development
Topic: SetMaxLength() not working
Replies: 8
Views: 445

Re: SetMaxLength() not working

Well you can open samples from wxwidgets directory and do by example or use form builder for generating basic code.

In any case it would be better read book about basic C++ stuff.
by Kvaz1r
Mon Apr 13, 2020 6:18 am
Forum: C++ Development
Topic: SetMaxLength() not working
Replies: 8
Views: 445

Re: SetMaxLength() not working

Put your code into constructor and not in the body of class itself.
by Kvaz1r
Fri Apr 03, 2020 7:10 am
Forum: Compiler / Linking / IDE Related
Topic: VS2019 and wxWidgets issue
Replies: 2
Views: 274

Re: VS2019 and wxWidgets issue

VS doesn't containt special form designer for wxWidgets. You can use special tool instead, for example - wxFormBuilder.
by Kvaz1r
Mon Mar 30, 2020 9:08 pm
Forum: General Development
Topic: Using a scripting engine
Replies: 2
Views: 274

Re: Using a scripting engine

Maybe ChaiScript?
by Kvaz1r
Thu Mar 26, 2020 1:22 pm
Forum: C++ Development
Topic: Saving wxImage to wxStringOutputStream fails
Replies: 8
Views: 425

Re: Saving wxImage to wxStringOutputStream fails

It's indeed tricky.
Could you check maybe will work such variant:

Code: Select all

        wxString str;
        wxStringOutputStream ssImg(&str, wxConvLocal);
        if (img.SaveFile(ssImg, wxBITMAP_TYPE_PNG))
        {
            ///data loaded into str
        }
by Kvaz1r
Thu Mar 26, 2020 12:01 pm
Forum: C++ Development
Topic: Saving wxImage to wxStringOutputStream fails
Replies: 8
Views: 425

Re: Saving wxImage to wxStringOutputStream fails

If first call you use wxBITMAP_TYPE_PNG and in second one - MIME_png. It should be so?
by Kvaz1r
Tue Mar 24, 2020 7:46 pm
Forum: General Development
Topic: Why does wxWidgets Documentation need to be so confusing?
Replies: 10
Views: 731

Re: Why does wxWidgets Documentation need to be so confusing?

Even the sample programs created by wxWidgets are extremely complex and confusing. See the wxTextCtrl. They put everything he can do in just 1 example, so anyone who is a beginner does not understand anything! That's exactly the point. You can see and play with every single feature. Such samples ar...
by Kvaz1r
Tue Mar 24, 2020 9:25 am
Forum: C++ Development
Topic: Displaying deleted rows in wxListCtrl
Replies: 7
Views: 353

Re: Displaying deleted rows in wxListCtrl

Something in layouting. Check does the behaviour exist in listctrl sample. If no - it's mistake in your code (maybe some problem with sizers or something), if yes - it's probably bug.
by Kvaz1r
Tue Mar 24, 2020 8:39 am
Forum: C++ Development
Topic: Displaying deleted rows in wxListCtrl
Replies: 7
Views: 353

Re: Displaying deleted rows in wxListCtrl

DeleteItem is indeed delete item, you can check it in listctrl sample. Can you provide reproducible code?
by Kvaz1r
Mon Mar 23, 2020 7:21 pm
Forum: C++ Development
Topic: Strings how to use correctly?
Replies: 3
Views: 257

Re: Strings how to use correctly?

And in cases where this is not possible: EX: My_wxTextCtrl1->SetValue(wxString::FromUTF8(My_wxTextCtrl2)); //Text = Lá lá lá So this is correct right? It is the correct way to do? When I chose "L" it was because I read it below: In C++, a literal L before a string constant is used to specify it as ...
by Kvaz1r
Mon Mar 23, 2020 6:17 pm
Forum: C++ Development
Topic: [Solved] problem with socket program for p2p
Replies: 45
Views: 2028

Re: problem with socket program for p2p

I don't know about how are managing p2p connections, but usual server kept list of client socket in some containers like std::vector or std::list. Maybe sockets sample contains something useful.
by Kvaz1r
Mon Mar 23, 2020 6:02 pm
Forum: C++ Development
Topic: Strings how to use correctly?
Replies: 3
Views: 257

Re: Strings how to use correctly?

I do not speak English, which makes it very difficult for me to understand wxWidgets documentation that does not have examples in its informative content. But reading in the wxwidegts documentation on obsolete commands I was confused. ----------------------------------------------------------------...
by Kvaz1r
Sun Mar 22, 2020 9:58 pm
Forum: wxCode
Topic: Escaping string in wxSqlite3
Replies: 2
Views: 1037

Re: Escaping string in wxSqlite3

Thanks, I'll definitely use prepared statements.