Search found 712 matches

by Manolo
Mon May 20, 2019 6:17 pm
Forum: Platform Related Issues
Topic: wxDataViewCtrl issues under mac os
Replies: 6
Views: 654

Re: wxDataViewCtrl issues under mac os

As a last resource, you can use the generic version instead of the native one.

For this, use two "define" and rebuild wxWidgets. See viewtopic.php?t=41995#p169933
by Manolo
Mon May 20, 2019 12:13 pm
Forum: C++ Development
Topic: Transform object private in public - WxSmith
Replies: 5
Views: 364

Re: Transform object private in public - WxSmith

Just modify the code that wxSmith wrote for you.

While for some properties of an object this may confuse future wxSmith usage on the same object, I don't think wxSmith will take care of your private->public modification.
by Manolo
Mon May 13, 2019 12:03 pm
Forum: Platform Related Issues
Topic: OpenGL pyramid project run-time error on Xcode cocoa
Replies: 2
Views: 438

Re: OpenGL pyramid project run-time error on Xcode cocoa

Platform: MacOS High Sierra 10.13.5
Can you try a different [higher] version?
I don't have a Mac, but I've read somewhere about some wrong OpenGL stuff in some OSX versions.
by Manolo
Sat Apr 06, 2019 1:04 pm
Forum: C++ Development
Topic: wxGLCanvas and OpenGL ES
Replies: 1
Views: 288

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

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

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

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

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

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

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

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

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

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

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

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() . ...