Search found 704 matches

by Manolo
Sat Mar 23, 2019 2:06 pm
Forum: C++ Development
Topic: How to manually validate wxTextCtrl value
Replies: 15
Views: 561

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

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

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

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

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

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

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

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

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

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...
by Manolo
Mon Feb 11, 2019 1:30 pm
Forum: C++ Development
Topic: wxW311 wxSocket changes
Replies: 6
Views: 373

Re: wxW311 wxSocket changes

Between wx3.1.0 (Feb 2016) and wx3.1.1 (Feb 2018) there has been some change in the libs needed for Windows target. At least oleacc is required now.

You may take a look at minimal sample project to find out the requiered libraries.
by Manolo
Sun Feb 10, 2019 5:32 pm
Forum: C++ Development
Topic: Custom events with/from wxComboBox and wxGrid
Replies: 7
Views: 331

Re: Custom events with/from wxComboBox and wxGrid

You can create your own cell editor, deriving from a wx's one. You must override some virtual methods: class myGridCellChoiceEditor : public wxGridCellChoiceEditor { public: ...... virtual void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler); virtual wxGridCellEditor *Clone() const...
by Manolo
Sat Feb 09, 2019 5:20 pm
Forum: Compiler / Linking / IDE Related
Topic: How do I install wxsmith?
Replies: 3
Views: 910

Re: How do I install wxsmith?

wxSmith is a plugging of Code::Blocks. If you have built C::B on your own then you missed to build also pluggins. To use wxWidgets no wizard is needed. You can always add the required libraries and headers on your own. It happens that on Linux wx has a useful tool called "wx-config", which can do th...
by Manolo
Fri Feb 08, 2019 2:17 am
Forum: C++ Development
Topic: wxWidgets & openGL
Replies: 10
Views: 459

Re: wxWidgets & openGL

Take a look at my post FAQ: wxWidgets and OpenGL
viewtopic.php?f=27&t=45552
by Manolo
Fri Feb 08, 2019 2:09 am
Forum: General Development
Topic: FAQ: wxWidgets and OpenGL
Replies: 1
Views: 2030

FAQ: wxWidgets and OpenGL

People often gets confused with OpenGL. They think it's like any other system library. And worst, they think the IDE they use provide OpenGL as any other common functions. I understand that without a previous knowledge such misunderstandings are there. Here are some tips. Q. What are "display attrib...