Search found 683 matches

by Manolo
Wed Jun 12, 2019 5:23 pm
Forum: C++ Development
Topic: wxFrame without icons
Replies: 4
Views: 68

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: 27
Views: 244

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: 8
Views: 130

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

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

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

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

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

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

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"...
by Manolo
Wed May 29, 2019 7:54 pm
Forum: Compiler / Linking / IDE Related
Topic: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?
Replies: 10
Views: 216

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

There are two main "adaptions" of GCC for Windows: MinGW and Mingw-64, the latter was a fork from the former. They have different web sites. Both use GCC 8 . Up today, Mingw is only capable of build 32 bits binaries (they are working on a 64 bits version), while mingw-64 is 32/64 capable (look for -...
by Manolo
Tue May 28, 2019 4:04 pm
Forum: C++ Development
Topic: [wxMSW][wx3.0.3] Getting associated icon of file type
Replies: 2
Views: 65

Re: [wxMSW][wx3.0.3] Getting associated icon of file type

I think you want the icon not of the file, but of the application used to open that file.

Look for wxFileType::GetOpenCommand(). Extract the application from the command, then retrieve the icon for that app.
For the second part, I don't know the clue; something in the Window's registry I guess.
by Manolo
Tue May 28, 2019 3:50 pm
Forum: C++ Development
Topic: Events & secondary threads
Replies: 14
Views: 188

Re: Events & secondary threads

A thread executes code, no matter where it's written. So, calling a GUI function or event-handler or whatever from a thread will execute that code as if was written "inside" the thread's code. An event handler receives events, comming from the OS or from [your] code, and stores them in a list. Latte...
by Manolo
Tue May 28, 2019 3:27 pm
Forum: C++ Development
Topic: Render a window in a wxDataViewCustomRenderer?
Replies: 5
Views: 90

Re: Render a window in a wxDataViewCustomRenderer?

wxDataViewCustomRenderer::Render() uses the wxDC to draw directly (as you would do by wxDC->DrawLine, or DrawCircle, etc). To draw text use wxDataViewCustomRenderer::RenderText() . For a combox box, wxDataViewChoiceRenderer For other targets, there's already some good classes. Take a look for wxDat...
by Manolo
Tue May 28, 2019 12:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Code:Blocks + Gcc skeleton application = 50+ depreciated warnings?
Replies: 10
Views: 216

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

Those are harmless warnings.

Anyhow, if you want to get rid of them, then choose a more recent compiler. You need GCC > 5.3. TDM is, by now, 5.1
by Manolo
Sun May 26, 2019 12:58 pm
Forum: Platform Related Issues
Topic: wxGLCanvas [latest trunk] resize don't work with macOS 10.14.5
Replies: 3
Views: 91

Re: wxGLCanvas [latest trunk] resize don't work with macOS 10.14.5

I don't see anything else wrong in your code. And wxWidgets OpenGL stuff is quite simple. However, there have been some changes in the last two years that may be part of your issue. If the opengl/cube sample (or any of the other opengl samples) doesn't work neither then please open a ticket at https...