Search found 689 matches

by Manolo
Mon Jun 24, 2019 4:04 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 365

Re: [wxwidgets3.1.2, opengl] A hen and egg problem

If the pyramid sample works for you I guess your issue is related to libraries linked. To find how pyramid gets compiled add >buildlog.txt >2&1 at the end of your command line ( x86_64-w64-mingw32-c++.exe -f makefile.gcc ...). Then, "buildlog.txt" will show the included dirs and linked libs. It seem...
by Manolo
Sat Jun 22, 2019 12:00 am
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 365

Re: [wxwidgets3.1.2, opengl] A hen and egg problem

Mick P : ...they are expressly NOT using wxGLContext. Therefor, it seems logical to also not use wxGLCanvas... Please, stop adding confusion. The OP has problems with ' creating a openGL context in wxWidgets ', and some people (like me) are trying to help. To use OpenGL you need: 1) Create a window...
by Manolo
Fri Jun 21, 2019 8:07 pm
Forum: C++ Development
Topic: [wxwidgets3.1.2, opengl] A hen and egg problem
Replies: 14
Views: 365

Re: [wxwidgets3.1.2, opengl] A hen and egg problem

I get an error about some assert triggered on "tempcontext" inside wxglcanvas If you look inside msw/glcanvas.cpp this is a temporary context used internally to get a pointer to wglCreateContextAttribsARB needed for OpenGL > 2.1 Having a error there means there's something wrong and weird with your...
by Manolo
Wed Jun 19, 2019 3:58 pm
Forum: C++ Development
Topic: Smooth surfaces in opengl/penguin example
Replies: 5
Views: 153

Re: Smooth surfaces in opengl/penguin example

wxWidgets takes care only of OS-dependant OpenGL stuff. This includes display attributes, gl context, and swapbuffers calls. The rest (all of OpenGL API) is not a wxWidgets goal. So, the OGL samples that wx provides are there just to show how to deal with those matters. If they would show complex OG...
by Manolo
Tue Jun 18, 2019 12:33 am
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 35
Views: 688

Re: Help? GTK events do/dont's for dummies (nothing works)

MickP, I see a lot of complains from you, never with enough code (or even worst: no code at all) that justifies your issues. That's not good if you want to get help. People may try to guess, or may try to correct some wrong comments. but that's all. Most of people will skip to other questions where ...
by Manolo
Sun Jun 16, 2019 7:27 pm
Forum: C++ Development
Topic: Smooth surfaces in opengl/penguin example
Replies: 5
Views: 153

Re: Smooth surfaces in opengl/penguin example

This is not the forum to ask about OpenGL (appart from the basic that wxWidgets offers).
Better try at https://community.khronos.org/c/opengl-general, stackoverflow, etc.

For your issue: You can use more triangles to define a surface, so more "normals". There are more ways, but harder to understand.
by Manolo
Wed Jun 12, 2019 5:23 pm
Forum: C++ Development
Topic: wxFrame without icons
Replies: 4
Views: 122

Re: wxFrame without icons

Perhaps you want a wxDialog instead of a wxFrame.
by Manolo
Wed Jun 12, 2019 5:10 pm
Forum: Platform Related Issues
Topic: Help? GTK events do/dont's for dummies (nothing works)
Replies: 35
Views: 688

Re: Help? GTK events do/dont's for dummies (nothing works)

You don't post any code, so I can only guess about your issues using the few and hidden clues you give. I have a very simple system that spawns some windows that use the wxGLCanvas class only to paint their bodies. They have a few handlers for input and Size/Move events. This works for MSW. Under GT...
by Manolo
Tue Jun 11, 2019 4:38 pm
Forum: Platform Related Issues
Topic: Xlib: How does wxWidgets understand x11's client options?
Replies: 16
Views: 355

Re: Xlib: How does wxWidgets understand x11's client options?

I assume X11 is a subset of GTK, since all Linux desktops use x11 protocols. No. I think you should read the X11 guide slowly, again and again until you got it. Pay attention to "Display" "Window" "Map window" "Visual" "Color", "Event" and those X11 concepts, which sometimes -but not always- are th...
by Manolo
Tue Jun 11, 2019 3:26 pm
Forum: Compiler / Linking / IDE Related
Topic: Why my app can't compile if wxWidgets built with disable-debug
Replies: 4
Views: 150

Re: Why my app can't compile if wxWidgets built with disable-debug

Take a slow look at yourwxBuilDir /samples/minimal/Makefile . It defines a var wx_top_builddir and another top_srcdir = ../../.. top_srcdir is "yourwxMainDir" = /home/fc/wxWidgets/wxWidgets-3.0.4 in your case. You have two different wx builds (I called 'yourwxBuilDir') /home/fc/wxWidgets/wxWidgets-3...
by Manolo
Mon Jun 10, 2019 4:20 pm
Forum: Compiler / Linking / IDE Related
Topic: Why my app can't compile if wxWidgets built with disable-debug
Replies: 4
Views: 150

Re: Why my app can't compile if wxWidgets built with disable-debug

I think you should review the link directories you set in C::B for different targets. And likely the include dirs also.
by Manolo
Wed Jun 05, 2019 12:32 pm
Forum: C++ Development
Topic: Resize windows to match text length
Replies: 3
Views: 105

Re: Resize windows to match text length

wxFrame (or wxWindow in general) has some useful functions: //The length of the text wxSize sL = GetTextExtent(FileDialog1->GetPath()); //The size of the client part of the window. wxSize sC = GetClientSize(); //Replace width sC.SetWidth(sL.GetWidth()); //New client size SetSize(sC); Layout(); Inser...
by Manolo
Sun Jun 02, 2019 12:59 pm
Forum: Compiler / Linking / IDE Related
Topic: wxSmith not changing .cpp any more.
Replies: 2
Views: 113

Re: wxSmith not changing .cpp any more.

You may better ask in Code::Blocks forum http://forums.codeblocks.org/
by Manolo
Sun Jun 02, 2019 12:51 pm
Forum: Compiler / Linking / IDE Related
Topic: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?
Replies: 10
Views: 279

Re: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?

A small hack that I used with TDM GCC 5.1: Edit include/wx/window.h , about line 1700, add the #if block: wxDEPRECATED_MSG("use SetInitialSize() instead.") void SetBestSize(const wxSize& size); #if !wxCHECK_GCC_VERSION(5, 0) wxDEPRECATED_MSG("use SetInitialSize() instead.") #endif virtual void SetIn...
by Manolo
Fri May 31, 2019 12:55 pm
Forum: Compiler / Linking / IDE Related
Topic: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?
Replies: 10
Views: 279

Re: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?

Both wxWidgets and C::B try to keep old environment (compiler and wx versions, and MSW / GTK olds too). This means some sort of surprises, as the warnings you get, or some controls having different behaviour in different MSW versions. Normally you can develop e.g. for Win7 and everything goes "well"...