Take a look at "minimal" sample (or anyother more complex sample), provided with your wxWidgets sources.
You'll see "makefile.xxx" files used for different compilers. Learn from them.
Search found 724 matches
- Thu Jan 07, 2021 6:52 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Create makefile for wxwidgets project
- Replies: 10
- Views: 379
- Thu Jan 07, 2021 6:47 pm
- Forum: C++ Development
- Topic: leak problem
- Replies: 7
- Views: 352
Re: leak problem
new whatever[10] This is bad. You're trying to create an array of "whatever" objects, but you don't give a name to that array. How would you delete that array? The best you can hope is that the compiler will dismiss that try. But it's also the worst, because you don't know if the compiler did it or...
- Thu Jan 07, 2021 6:38 pm
- Forum: C++ Development
- Topic: main() start two main() threads, one for a C++ backend and a seconf for the wxWidgets GUI
- Replies: 4
- Views: 200
Re: main() start two main() threads, one for a C++ backend and a seconf for the wxWidgets GUI
My advise: Use wxWidgets as shown at any of its examples, like "minimal". This will call (internally) the required init-function (similar to main() for a console, WinMain() for GUI at MSWindow, etc). So, the app will start in its own thread, the main thread. Any GUI-call must be done in this main th...
- Tue Dec 29, 2020 8:07 pm
- Forum: C++ Development
- Topic: wxThread and Freeglut
- Replies: 12
- Views: 468
Re: wxThread and Freeglut
You don't really need Freeglut. Mixing its events&windows handling with the wxWidgets handling is tricky. If you want to use predefined shapes (cylinder, sphere, etc) take a look at "glu" https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/#glu (no glut, without events/windows handling). Bu...
- Mon Dec 21, 2020 8:53 pm
- Forum: C++ Development
- Topic: advice needed: opengl gui library that goes with Wx
- Replies: 7
- Views: 284
Re: advice needed: opengl gui library that goes with Wx
OpenGL does not provide any control (button, text, whatever). It just draws. wxWidgets asks the OS to draw the controls, and to receive the events they fire (mouse, keyboard, sizing, etc). The OS may draw on top of what OpenGL draws, but that's not a good approach. Some GUI libraries specialized in ...
- Sat Dec 19, 2020 6:27 pm
- Forum: C++ Development
- Topic: Cleanly show/hide tool-tip? (not set tool tip)
- Replies: 11
- Views: 398
Re: Cleanly show/hide tool-tip? (not set tool tip)
Single window with several areas...
What if you put each area in a wxPanel, layout with sizers, and set a tooltip for each panel?
What if you put each area in a wxPanel, layout with sizers, and set a tooltip for each panel?
- Fri Dec 18, 2020 8:38 pm
- Forum: C++ Development
- Topic: Cleanly show/hide tool-tip? (not set tool tip)
- Replies: 11
- Views: 398
Re: Cleanly show/hide tool-tip? (not set tool tip)
A tool-tip can be only used in a window.
Once wxwidgets sets it, by calling an OS function, its behaviour is that of the OS.
To disable the tool-tip (not showing when mouse hovers on) just call w->SetToolTip(wxEmptyString);
Once wxwidgets sets it, by calling an OS function, its behaviour is that of the OS.
To disable the tool-tip (not showing when mouse hovers on) just call w->SetToolTip(wxEmptyString);
- Fri Dec 18, 2020 7:35 pm
- Forum: Compiler / Linking / IDE Related
- Topic: How to make static compile of wxWidgets work in codeblocks
- Replies: 49
- Views: 2059
Re: How to make static compile of wxWidgets work in codeblocks
I understand (because I suffered it) that many of the problems come from the fact that there are a lot of concepts to be well understood before starting with wxWIdgets. Normally you learn those concepts in your education. But may many times you are self-tought, the hard way, and miss lots of things....
- Fri Dec 11, 2020 6:24 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Compiling Error
- Replies: 5
- Views: 351
Re: Compiling Error
When you change the compiler in most cases you must not only recompile your code, but the wx sources too.
- Fri Dec 11, 2020 6:21 pm
- Forum: C++ Development
- Topic: How on keyPress enable national chars?
- Replies: 1
- Views: 126
Re: How on keyPress enable national chars?
Take a look at the keyboard sample provided with the wx sources.
Pay attention to differences beetween Key events and Char events. See how modifiers and final-composed-char are handled.
Pay attention to differences beetween Key events and Char events. See how modifiers and final-composed-char are handled.
- Wed Dec 09, 2020 6:53 pm
- Forum: General Development
- Topic: Validated number input text control that works?
- Replies: 4
- Views: 265
Re: Validated number input text control that works?
wxFormatvalidator https://sourceforge.net/projects/wxcode ... Validator/ does everything you need.
It's C++. So, to use it in wxPython you need to compile it into a library and call it from python.
It's C++. So, to use it in wxPython you need to compile it into a library and call it from python.
- Fri Aug 28, 2020 7:41 pm
- Forum: C++ Development
- Topic: issues with wxcollapsiblepane and sizers
- Replies: 2
- Views: 308
Re: issues with wxcollapsiblepane and sizers
The three windows you added to column1 sizer have proportion=0. That's OK, specially with collasible panes. When the frame is created you call frame->Layout . OK. Now the frame knows the size required for its children and the frame is shown right. When you want to expand a collapsile pane, the curre...
- Wed May 13, 2020 4:35 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Codeblocks console debug output
- Replies: 3
- Views: 480
Re: Codeblocks console debug output
Yours is a question better asked at http://forums.codeblocks.org/index.php
- Wed May 13, 2020 4:25 pm
- Forum: C++ Development
- Topic: Can't make wxTextCtrl fit more than 10 digits.
- Replies: 4
- Views: 434
Re: Can't make wxTextCtrl fit more than 10 digits.
I'm surprised that a custom box for ip addresses, allowing only legal addresses has not been developed before. There is a proposal, wxMaskedEdit , at http://trac.wxwidgets.org/ticket/14535 that never become accepted. A matter of more people testing it. While it's quite old, you may try it. Perhaps ...
- Mon May 11, 2020 5:45 pm
- Forum: General Development
- Topic: Why does wxWidgets Documentation need to be so confusing?
- Replies: 10
- Views: 1399
Re: Why does wxWidgets Documentation need to be so confusing?
Nick, I know how you feel because I've felt the same. Let me share my experience here. I'm not educated in programming, apart from a brief curse. I'm an engineer in a different branch. Despite of it, I always liked to code, and I did. Many years ago I developed in Basic on DOS system. Everything was...