Search found 664 matches

by Manolo
Sat Apr 06, 2019 1:04 pm
Forum: C++ Development
Topic: wxGLCanvas and OpenGL ES
Replies: 1
Views: 61

Re: wxGLCanvas and OpenGL ES

I have not used OpenGL ES. But since ThinkerOS is Debian-based I suppose that GLX should be internally used. wxWidgets 3.1.0 and above provide a way to create a ES context, by setting the proper ES() flag with the wxGLContextAttrs. See https://docs.wxwidgets.org/trunk/classwx_g_l_context_attrs.html#...
by Manolo
Wed Apr 03, 2019 4:46 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets Compile Options
Replies: 29
Views: 502

Re: wxWidgets Compile Options

Now you have succesfully built wxWidgets, next is the C::B thing. This forum is for wxWidgets, Code::Blocks has its own forum. Despite of it, I write here some quick clues. First, the compiler you use in C::B must be the same as the one use for wx building. If not, "undefined reference" errors will ...
by Manolo
Wed Apr 03, 2019 4:13 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets Compile Options
Replies: 29
Views: 502

Re: wxWidgets Compile Options

I never said I prefer MSYS to "normal" mingw environment. In fact, next I tell the steps to go: 1) Have a Mingw compiler downloaded and installed. Let's say you use mingw-64 or TDM. For example you have now this folder: C:\Mingw64\bin 2) Delete any previous leftovers related to wxWidgets, included P...
by Manolo
Fri Mar 29, 2019 1:55 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets Compile Options
Replies: 29
Views: 502

Re: wxWidgets Compile Options

MIngw (from mingw.org) builds only 32 bits executables. Mingw64 (from mingw-w64.org) is able to produce both 32 and 64 bits. TDM-GCC uses both mingw and mingw64. Choose one of the three compilers, for both building wx and your app. MSYS allows you to have a Linux-like environment. For example, you ...
by Manolo
Mon Mar 25, 2019 1:03 pm
Forum: C++ Development
Topic: How to intercept a clipboard paste event and pass it to the associated validator?
Replies: 3
Views: 76

Re: How to intercept a clipboard paste event and pass it to the associated validator?

The event to handle is the "paste" event. See https://docs.wxwidgets.org/trunk/classwx_clipboard_text_event.html If you use old static event tables, then use EVT_TEXT_PASTE(id, func) macro (or wxEVT_COMMAND_TEXT_PASTE for wx 2.9.0). If you use Bind() then use wxEVT_TEXT_PASTE event type. Likely you ...
by Manolo
Sat Mar 23, 2019 2:06 pm
Forum: C++ Development
Topic: How to manually validate wxTextCtrl value
Replies: 15
Views: 256

Re: How to manually validate wxTextCtrl value

wxNumValidator and its descendant wxFloatingPointValidator are designed to accept simple inputs. like "1234.56", by basically filtering characters and trying to get a number form the current string. Anything beyond this is not implemented, or works wrongly. By "beyond this" I enclose a lot of cases:...
by Manolo
Fri Mar 22, 2019 2:00 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 276

Re: wxGLCanvas always displaying previous render on Windows 10

glProvokingVertex is used internally by OGL to from primitives. So, it has nothing to do with your issue. Or it's a really rare weird driver bug.
by Manolo
Thu Mar 21, 2019 6:40 pm
Forum: C++ Development
Topic: About the size of wxGLCanvas
Replies: 24
Views: 311

Re: About the size of wxGLCanvas

First, some terminology: "Resolution" is measured in DPI, "dots per inch". It represents the "density" of the pixels. "Size" is normally measured in pixels. wxDialog uses "units" instead. OpenGL uses physical size, but a window normally is sized in scaled, "logical" pixels. The factor of the scaling...
by Manolo
Fri Mar 15, 2019 5:37 pm
Forum: C++ Development
Topic: How to change z-order of wxTextCtrl?
Replies: 11
Views: 170

Re: How to change z-order of wxTextCtrl?

The window you want to change "tab order" custom_sizer->GetMyTextCtrl() and the reference (another window, next_sizer->GetMyTextCtrl() ) must be siblings, they must have the same parent. Remember: a sizer is NOT a window, but a "machine" that handles sizes and positions. BTW, using a wxPanel to plac...
by Manolo
Fri Mar 15, 2019 5:27 pm
Forum: Compiler / Linking / IDE Related
Topic: OpenGL under WxWidgets in Eclipse
Replies: 12
Views: 415

Re: OpenGL under WxWidgets in Eclipse

The history of OpenGL in MS Windows is weird.
opengl32 was chosen when XP saw the light, as opposed to Win 9X 16 bits. Since then, the name still stands, despite it's for 32 or for 64 bits.
by Manolo
Fri Mar 15, 2019 1:45 pm
Forum: C++ Development
Topic: using wxWidgets in library
Replies: 26
Views: 440

Re: using wxWidgets in library

If I understand your issue, you want console app (by typical int main(arg, args) ) that for some cases shows a dialog. The dialog must be non-blocking and handle its own events, which needs its own event-loop. I think this is possible, but overwhelmingly tricky, as it goes against a normal GUI app. ...
by Manolo
Sat Feb 16, 2019 1:32 pm
Forum: Platform Related Issues
Topic: Code Block - Windows to Code Block - Ubuntu
Replies: 1
Views: 72

Re: Code Block - Windows to Code Block - Ubuntu

Your code is too long for a starter. I recomend to study the samples/minimal provided with wx installation. Then see other samples and learn how to add features (file dialogs, drawing, etc). Right now, your code lacks a class (say "MyApp") deriving from wxApp , and which overrides wxApp::OnInit() . ...
by Manolo
Thu Feb 14, 2019 1:21 am
Forum: C++ Development
Topic: wxWidgets & openGL
Replies: 10
Views: 255

Re: wxWidgets & openGL

I compled the opengl sample again and it works perfectly. I probably expected one .exe, and there is three as you know. What? There are four OGL samples. You can compile one by one (entering in each sub-dir) or all at once from samples\opengl I ran the drawing-sample. That the one that throws the "...
by Manolo
Mon Feb 11, 2019 4:47 pm
Forum: C++ Development
Topic: Multi Threaded Application Wont Exit
Replies: 2
Views: 106

Re: Multi Threaded Application Wont Exit

I don't see you call event.Skip() at Beast_1_69Dialog::OnClose(...), supposed Beast_1_69Dialog derives from wxDialog.

Let wx does its job instead of closing/destroying the window on your own.
by Manolo
Mon Feb 11, 2019 4:14 pm
Forum: C++ Development
Topic: wxW311 wxSocket changes
Replies: 6
Views: 175

Re: wxW311 wxSocket changes

wxmsw$(wxShortVersionString)u_core.lib wxbase$(wxShortVersionString)u.lib I suppose (wxShortVersionString) is some define for "3.1" Also, if you use wxSocket, then add wxbase31ud_net.lib (or similar name) For the system libs, I use the same libs as you, plus these three: odbc32.lib opengl32.lib ole...