Search found 184 matches

by Kvaz1r
Fri Apr 03, 2020 7:10 am
Forum: Compiler / Linking / IDE Related
Topic: VS2019 and wxWidgets issue
Replies: 2
Views: 37

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

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

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

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: 5
Views: 159

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

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

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

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

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

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

Re: Escaping string in wxSqlite3

Thanks, I'll definitely use prepared statements.
by Kvaz1r
Sun Mar 22, 2020 1:17 pm
Forum: wxCode
Topic: Escaping string in wxSqlite3
Replies: 2
Views: 303

Escaping string in wxSqlite3

I didn't find special function for escaping strings in the documentation so I just replaced all occurances of "'" with "\\'". Is there any other cases that one should be aware of? Because php function also "checking for binary-unsafe characters" and I don't know what mean binary-unsafe characters.
by Kvaz1r
Sun Mar 22, 2020 8:07 am
Forum: C++ Development
Topic: How to display math formula or symbol in wxWidgets?
Replies: 5
Views: 169

Re: How to display math formula or symbol in wxWidgets?

I don't know any C or C++ library for converting from LATEX to image, except latexpp , so you can try to use it. As an alternative you can find some utility for convertation and call it from your application.
by Kvaz1r
Thu Mar 19, 2020 9:30 pm
Forum: C++ Development
Topic: [Solved] problem with socket program for p2p
Replies: 45
Views: 1027

Re: problem with socket program for p2p

I get only one message on Win10: -= Server listening on port 3000 Would you describe what do you want to achieve? I don't see much sense put client and server code into one class. Maybe it would be better to split this part? If I understood you correctly you want start server in main thread, client ...