Search found 12804 matches

by doublemax
Sat Dec 15, 2018 2:56 am
Forum: C++ Development
Topic: Wxbutton label font resize
Replies: 1
Views: 19

Re: Wxbutton label font resize

So I managed to create a wxfont function to increase the size of my wxtextctrl display I'm not quite sure what you mean by that, but if you managed to set a bigger font for a text control, the same will work for buttons. If you want a bigger font for all controls, set a bigger font for the parent o...
by doublemax
Thu Dec 13, 2018 10:01 am
Forum: C++ Development
Topic: wxNotebook inside sizer becomes to large when a large grid is a subpage of the notebook [SOLVED]
Replies: 12
Views: 172

Re: wxNotebook inside sizer becomes to large when a large grid is a subpage of the notebook [SOLVED]

I see it now, in my tests before i never had any content on the right side of the grid. The only way i found to solve this was to subclass wxGrid and override DoGetBestSize(). class MyGrid : public wxGrid { public: MyGrid( wxWindow *parent, int id ) : wxGrid( parent, id ) { }; virtual wxSize DoGetBe...
by doublemax
Thu Dec 13, 2018 8:30 am
Forum: C++ Development
Topic: wxThreadEvent::SetString not working correctly on Mac
Replies: 1
Views: 36

Re: wxThreadEvent::SetString not working correctly on Mac

wxString statusText(text.c_str(), wxConvUTF8); Did you confirm that "statusText" contains the complete string after this? event->SetString(statusText.c_str()); Why do you use c_str() here?. Try just: event->SetString(statusText); How do you check the string on the receiving side?
by doublemax
Thu Dec 13, 2018 8:25 am
Forum: C++ Development
Topic: GUI Chat Application
Replies: 1
Views: 74

Re: GUI Chat Application

Check the "ipc" sample that comes with wxWidgets. It consists of a "client" and "server" executable and does pretty much exactly what you want do to. (Internally, not the GUI part).
by doublemax
Wed Dec 12, 2018 8:13 pm
Forum: C++ Development
Topic: using classes on widget
Replies: 5
Views: 50

Re: using classes on widget

Converting the sequential processing inside a console application to an event driven processing in a GUI application is a general problem, it's not specific to wxWidgets. Regarding the tutorials, there was another thread about that recently: https://forums.wxwidgets.org/viewtopic.php?f=1&t=45377...
by doublemax
Wed Dec 12, 2018 6:58 pm
Forum: C++ Development
Topic: using classes on widget
Replies: 5
Views: 50

Re: using classes on widget

You can do that just like with any other C++ application. In many cases you'll just have to code the data transfer yourself. E.g. you retrieve data from a database and then you have to transfer that data into a wxGrid to display it. There are no adapter classes that do that for you. But everything i...
by doublemax
Wed Dec 12, 2018 6:43 pm
Forum: C++ Development
Topic: using classes on widget
Replies: 5
Views: 50

Re: using classes on widget

Please be more specific.
by doublemax
Wed Dec 12, 2018 5:29 pm
Forum: C++ Development
Topic: wxNotebook inside sizer becomes to large when a large grid is a subpage of the notebook [SOLVED]
Replies: 12
Views: 172

Re: wxNotebook inside sizer becomes to large when a large grid is a subpage of the notebook [SOLVED]

I still didn't see the effect you're describing or i've misunderstood the problem. But i noticed one problem: gridSizer->Add(testGrid, wxEXPAND); wxEXPAND has a value of 8192, but the second parameter is the proportion. You probably wanted: gridSizer->Add(testGrid, 1, wxEXPAND, 0); However, i think ...
by doublemax
Wed Dec 12, 2018 10:07 am
Forum: C++ Development
Topic: wxNotebook inside sizer becomes to large when a large grid is a subpage of the notebook [SOLVED]
Replies: 12
Views: 172

Re: wxNotebook inside sizer becomes to large when a large grid is a subpage of the notebook [SOLVED]

Thanks. But i'm at work now, so i won't have time to test this until i get home.
by doublemax
Wed Dec 12, 2018 8:40 am
Forum: General Development
Topic: Wxwidgets tutorial resources [SOLVED]
Replies: 4
Views: 125

Re: Wxwidgets tutorial resources [SOLVED]

There is also the wxWidgets book: https://ptgmedia.pearsoncmg.com/images/ ... 6_book.pdf

It's outdated, but still a good resource to understand the basic concepts of wxWidgets.
by doublemax
Wed Dec 12, 2018 7:05 am
Forum: C++ Development
Topic: How to call a Web Service from wxwidgets app
Replies: 2
Views: 57

Re: How to call a Web Service from wxwidgets app

That depends on the service, but most of them communicate via HTTP, so wxHTTP should work.
https://docs.wxwidgets.org/trunk/classwx_h_t_t_p.html

However, wxHTTP doesn't support SSL yet. If you need that, use libcurl.
https://curl.haxx.se/libcurl/
by doublemax
Tue Dec 11, 2018 11:19 pm
Forum: C++ Development
Topic: wxNotebook inside sizer becomes to large when a large grid is a subpage of the notebook [SOLVED]
Replies: 12
Views: 172

Re: wxNotebook inside sizer becomes to large when a large grid is a subpage of the notebook [SOLVED]

I can't reproduce this. Please try to create a minimal, but compilable sample that shows the issue.
by doublemax
Tue Dec 11, 2018 3:49 pm
Forum: Compiler / Linking / IDE Related
Topic: LNK4221 Warning VC++ v15.9.3 wx_vc15.sln 64-bit debug build only
Replies: 6
Views: 131

Re: LNK4221 Warning VC++ v15.9.3 wx_vc15.sln 64-bit debug build only

I tested with VS 15.4.1 and your setup.h changes and didn't get any of these warnings.

What happens if you just ignore the warnings? Any "real" issues?
by doublemax
Tue Dec 11, 2018 3:30 pm
Forum: C++ Development
Topic: wxDialog.ShowModal vs wxMessageDialog.ShowModal [SOLVED]
Replies: 9
Views: 151

Re: wxDialog.ShowModal vs wxMessageDialog.ShowModal [SOLVED]

I'm out of ideas. I'd need a compiling version of your custom button to test this myself.
by doublemax
Tue Dec 11, 2018 2:35 pm
Forum: Announcements and Discoveries
Topic: wxWidgets v3.1.2 release is out ;)
Replies: 4
Views: 99

Re: wxWidgets v3.1.2 release is out ;)

Technically only even minor version numbers indicate a "stable" version (2.6.x, 2.8.x, 3.0.x, 3.2.x etc) Therefore 3.1.2 is a "development" version. But "stable" only means that the API is stable, it doesn't mean that it crashes less. IMHO 3.1.2 is safe to use, even for...

Go to advanced search