Search found 712 matches

by Manolo
Sun Jan 27, 2019 2:07 pm
Forum: Compiler / Linking / IDE Related
Topic: Confusion with MinGW-compiler-options
Replies: 3
Views: 515

Re: Confusion with MinGW-compiler-options

There are two kind of libraries files: a) dynamic. They are linked to the app as a reference, and loaded at runtime. On MSWindows these files have .dll extension. b) static. They are linked to the app during linking-time, and so they become part of the .exe file. On MSWindows these files have .a ext...
by Manolo
Wed Jan 23, 2019 4:09 pm
Forum: Compiler / Linking / IDE Related
Topic: wxFormBuilder and special charsets
Replies: 9
Views: 840

Re: wxFormBuilder and special charsets

The are three encodings: a) The one used by the compiler. b) The one used by the IDE, wxFormBuilder in your case. c) The one your app uses (e.g. changing the locale) for GUI, and for files. It's good if a) and b) are the same; otherwise you need special flags to the compiler. wxWidgets advices (but ...
by Manolo
Wed Jan 23, 2019 3:57 pm
Forum: C++ Development
Topic: problem geting values from TextCtrl
Replies: 5
Views: 610

Re: problem geting values from TextCtrl

I am using wxSmith for creating my wxWidget projects, as doing it manually is a huge pain in the as. That huge "pain" will teach you how to do things, and so how wxSmith works. Get rid of "automagic" tools unless you understand the underlaying "magic". MyPanel is the control I am using to get float...
by Manolo
Tue Jan 22, 2019 4:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Need advice on how to split code for complex forms in more files
Replies: 1
Views: 304

Re: Need advice on how to split code for complex forms in more files

wxWidgets code is a good example. Each goal (e.g. a special control like wxGrid, wxDVC, or event not that special, like a wxFileDialog) has its own .h and .cpp files. If you have a dialog for setting some parameters, add new files to the IDE and write the GUI code inside them. Passing these paramete...
by Manolo
Tue Jan 22, 2019 4:20 pm
Forum: C++ Development
Topic: problem geting values from TextCtrl
Replies: 5
Views: 610

Re: problem geting values from TextCtrl

Hi Sorry, your code is too obfuscated. You don't show how the frame is created, why it contains several wxPanel/MyPanel, etc. If using Connect() or better Bind() , you don't need BEGIN_EVENT_TABLE macros The textctrl with parent=Panel1 seems not to be bound to any message handler. If you want a wxTe...
by Manolo
Tue Jan 15, 2019 8:29 pm
Forum: C++ Development
Topic: wxMemoryDC on wxBitmap uses button background/foreground
Replies: 10
Views: 1052

Re: wxMemoryDC on wxBitmap uses button background/foreground

Why you use mem_dc.DestroyClippingRegion();?
You better replace it with mem_dc.SelectObject(wxNullBitmap);
by Manolo
Tue Jan 15, 2019 4:43 pm
Forum: C++ Development
Topic: FBO implementation not successful
Replies: 3
Views: 370

Re: FBO implementation not successful

OpenGL usually makes people confuse. Let me write a bit of explanation. To use OGL a so called " context " must be created and set "as current" to a window from a thread. The window requires some features (number of colors, number of bits of the depth buffer , etc.). See wxGLAttributes in the wx doc...
by Manolo
Thu Jan 10, 2019 7:05 pm
Forum: Compiler / Linking / IDE Related
Topic: openGL compilation failure
Replies: 5
Views: 625

Re: openGL compilation failure

OK. I see the same typedef in the OS GL/glxext.h file, which may be included from also OS GL/gl.h . Thus, we can have a bug at ../src/unix/glx11.cpp . Try MOVING the whole typedef (lines 72-75) into the contiguous #ifndef GLX_ARB_create_context block (lines 77-84). If it works, a PR must be submitte...
by Manolo
Thu Jan 10, 2019 6:24 pm
Forum: Compiler / Linking / IDE Related
Topic: openGL compilation failure
Replies: 5
Views: 625

Re: openGL compilation failure

To get OpenGL lib you need to use --with-opengl in your ../configure command. The weird thing is your log shows it's trying to compile the right file (../src/unix/glx11.cpp), but spits a redeclaration of PFNGLXCREATECONTEXTATTRIBSARBPROC . This has never been a bug, as this declaration should be uni...
by Manolo
Fri Jan 04, 2019 4:06 pm
Forum: C++ Development
Topic: Problems about repainting wxGLCanvas when resizing
Replies: 2
Views: 239

Re: Problems about repainting wxGLCanvas when resizing

The OpenGL API does not contain any command to automagically resize anything. It's your task, which is normally achieved by setting proper parameters to the projection matrix you use. Scaling or translating or moving the camera may also work (the model and view matrices). BTW, glFlush() just tells t...
by Manolo
Fri Dec 21, 2018 4:21 pm
Forum: C++ Development
Topic: Another 3.0 upgrade problem
Replies: 4
Views: 328

Re: Another 3.0 upgrade problem

Try setting wxRESERVE_SPACE_EVEN_IF_HIDDEN flag to those items that can be hidden.
by Manolo
Wed Dec 05, 2018 7:04 pm
Forum: C++ Development
Topic: wxSpinCtrl larger buttons
Replies: 4
Views: 394

Re: wxSpinCtrl larger buttons

I have not tested it, but, what about adding the wxSpinCtrl to a sizer, and setting some minimum value for its size? Be aware that in some platforms this control is native, so I dude about such a size-feature. In the worst case you can create your own composite control (as wxSpinCtrl is, see /src/ge...
by Manolo
Wed Dec 05, 2018 4:24 pm
Forum: C++ Development
Topic: wxDataViewCtrl - Finish Editing
Replies: 4
Views: 676

Re: wxDataViewCtrl - Finish Editing

There exists virtual bool wxDataViewRenderer::FinishEditing() and virtual void wxDataViewRenderer::CancelEditing()

Looking into wx sources they do what their names tell. The difference is getting or not the current value in control.
by Manolo
Fri Nov 30, 2018 5:06 pm
Forum: C++ Development
Topic: wxThread and OpengL
Replies: 7
Views: 570

Re: wxThread and OpengL

OpenGL was not designed with multithread on sight. Internally the hardware will split the task into several "paths". But externally only a thread can use gl-commands in a current gl-context So, if you want your thread to execute some gl-stuff then call wxGLCanvas::SetCurrent() or wxGLContext::SetCur...
by Manolo
Fri Nov 23, 2018 3:50 pm
Forum: Platform Related Issues
Topic: Memory leaks on Mac OS X wxWidgets 3.1 sample dialog
Replies: 2
Views: 528

Re: Memory leaks on Mac OS X wxWidgets 3.1 sample dialog

Memory leaks in wxWidgets are possible, but very unlikely due to so long the code has been tested. Are you sure you see a leak or it's just the OS showing how much memory is set as available to the app? OS's use to handle memory in chunks, not by the exact amount requested by the app. A more detaile...