Search found 726 matches
- Mon Mar 29, 2021 12:52 pm
- Forum: C++ Development
- Topic: wxGLCanvas/wxGLContext: How to query pixel format?
- Replies: 4
- Views: 177
Re: wxGLCanvas/wxGLContext: How to query pixel format?
I guess I could possibly use wxGLAttributes::GetGLAttrs() but documentation doesn't specify the details of what is returned: Oh, yes, I forgot this function. It returns a pointer-to-integer with the list of "ints" that compose the list of parameters needed for OGL. The parameters values are OS-depe...
- Sun Mar 28, 2021 8:01 pm
- Forum: C++ Development
- Topic: wxGLCanvas/wxGLContext: How to query pixel format?
- Replies: 4
- Views: 177
Re: wxGLCanvas/wxGLContext: How to query pixel format?
No, wxWidgets doesn't provide a function for retrieving the pixel format (PF). Normally, this PF is the same the app asked for (the wxGLCanvas attributes). But you can can use MSW specific function GetPixelFormat , and use it with the HDC returned by wxGLCanvas::GetHDC() so that it works with window...
- Thu Jan 07, 2021 6:52 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Create makefile for wxwidgets project
- Replies: 10
- Views: 782
Re: Create makefile for wxwidgets project
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.
You'll see "makefile.xxx" files used for different compilers. Learn from them.
- Thu Jan 07, 2021 6:47 pm
- Forum: C++ Development
- Topic: leak problem
- Replies: 7
- Views: 396
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: 220
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: 491
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: 329
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: 458
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: 458
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: 2336
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: 405
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: 154
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: 507
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: 322
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: 530
Re: Codeblocks console debug output
Yours is a question better asked at http://forums.codeblocks.org/index.php