Search found 436 matches

by xaviou
Thu Jul 13, 2017 6:04 am
Forum: Platform Related Issues
Topic: SetLabel() on wxBitmapButton does not work as expected
Replies: 2
Views: 1085

Re: SetLabel() on wxBitmapButton does not work as expected

Hi.

Did you try updating your sizers after changing the buttons labels ?

Code: Select all

......
goPrevButton->SetLabel(_("Previous Page"));
bottomToolInternalSizer->Add( goPrevButton, 0, wxALIGN_CENTER );
bottomToolInternalSizer->AddSpacer( 5 );
bottomToolInternalSizer->Layout();
Regards
Xav'
by xaviou
Thu Jul 06, 2017 3:04 pm
Forum: Compiler / Linking / IDE Related
Topic: How do I Compile wxWidgets Sample Code?
Replies: 34
Views: 9178

Re: How do I Compile wxWidgets Sample Code?

Hi. If your compiler (gcc) can be found from the path, you can just open a command prompt, change the working directory to the corresponding sample folder, and run "mingw32-make.exe -f makefile.gcc". If you want to use CodeLite, you can create a new project in the sample directory and add the ".cpp"...
by xaviou
Tue Jun 13, 2017 2:10 pm
Forum: C++ Development
Topic: SetBackgroundColour possible bug
Replies: 3
Views: 959

Re: SetBackgroundColour possible bug

Hi. Did you try setting the background color before showing the frame ? #include "main.h" IMPLEMENT_APP(MyApp) bool MyApp::OnInit() { wxFrame *mainframe = new wxFrame(NULL, wxID_ANY, wxString("Main Window"), wxPoint(wxDefaultPosition), wxSize(1152, 648)); mainframe->SetBackgroundColour(wxColor(73, 7...
by xaviou
Sun May 07, 2017 5:13 pm
Forum: C++ Development
Topic: Escaped unicode character not displaying properly
Replies: 1
Views: 746

Re: Escaped unicode character not displaying properly

Hi. You have 2 solutions : Convert your source code file to UTF-8 without BOM (is you want to use specials unicode characters, you must have them correctly encoded) The "copyright" character has its own treatment in the wxAboutDialogInfo class : if you write info.SetCopyright(_("v1.0b. Copyright (c)...
by xaviou
Wed May 03, 2017 11:32 am
Forum: Compiler / Linking / IDE Related
Topic: Matching debug/ release configuration cannot be found ...
Replies: 6
Views: 3262

Re: Matching debug/ release configuration cannot be found ...

Hi Thank you! Both ways did it. What - of both alternatives (renaming the wx-dir or changing the build options) - is the "better" way? Being able to switch between 32- and 64-bit target WITHIN C:B, wouldn't it be better to change the pointing to the wx-libs withing C:B too? Regards Both solutions ha...
by xaviou
Wed May 03, 2017 9:27 am
Forum: Compiler / Linking / IDE Related
Topic: Matching debug/ release configuration cannot be found ...
Replies: 6
Views: 3262

Re: Matching debug/ release configuration cannot be found ...

nji wrote: But then building in C:B, none of the choices (monolithic, unicode etc.) does the job.
The official binaries are "non-monolithic unicode dll" builds.

Regards
Xav'
by xaviou
Wed May 03, 2017 9:25 am
Forum: Compiler / Linking / IDE Related
Topic: Matching debug/ release configuration cannot be found ...
Replies: 6
Views: 3262

Re: Matching debug/ release configuration cannot be found ...

Hi. I installed the newest C:B (gcc), and then WxWidgets (3.0.3) as binaries (include and lib). I assume you've downloaded the official binaries. So, in your wxWidgets's installation dir, you should have , in the "lib" folder, a sub-directory named " gcc xxx TDM[_x64]_dll ". (the 'xxx' part correspo...
by xaviou
Thu Apr 20, 2017 3:44 pm
Forum: Compiler / Linking / IDE Related
Topic: Compiling code using Mingw and wxWidgets on command line Windows 10
Replies: 13
Views: 5699

Re: Compiling code using Mingw and wxWidgets on command line Windows 10

Manolo wrote:Compiling your own code on Windows is just a little more tricky than on Linux because of lacking wx-config.
I've build a version of wx-config for Windows (started from CodeLite's sources) :
http://x.psoud.free.fr/?/soft/wxconfig.html

Regards
Xav'
by xaviou
Thu Apr 20, 2017 5:57 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling code using Mingw and wxWidgets on command line Windows 10
Replies: 13
Views: 5699

Re: Compiling code using Mingw and wxWidgets on command line Windows 10

Hi.

The better way to get these flags/parameters is to compile the "minimal" sample that comes with the sources.

If you use the same command line to build the sample than the one used to build the libs, you'll obtain the correct command line to compile and link the sources.

Regards
Xav'
by xaviou
Wed Apr 12, 2017 8:58 am
Forum: C++ Development
Topic: wxLoadFileSelector is not returning selected file path in Linux.
Replies: 2
Views: 623

Re: wxLoadFileSelector is not returning selected file path in Linux.

Hi.

I've just tested on a Linux Mint "Debian Edition" (LMDE) with wxWidgets 3.1.1, and it works correctly.

Witch version of wxWidgets are you using ?
And where does it come from (official repos, own build, ...) ?

Regards
Xav'
by xaviou
Tue Feb 28, 2017 7:43 am
Forum: C++ Development
Topic: windows: ugly grey background/border in some widgets
Replies: 2
Views: 798

Re: windows: ugly grey background/border in some widgets

Hi That "ugly grey border/background" is the colour of the wxFrame, which I'm sure does not appear randomly, but consistently. Doesn't it? Just to add that it is the default background color of a window under Windows (this is not a wxWidgets related thing). If you don't want that, add a wxPanel as t...
by xaviou
Wed Feb 08, 2017 2:24 pm
Forum: Compiler / Linking / IDE Related
Topic: wx/wx.h: No such file or directory
Replies: 1
Views: 3028

Re: wx/wx.h: No such file or directory

Hi.

As you added `wx-config --libs` as a linker rule, you should add `wx-config --cxxflags` to the compiler rules.

Also, check that these 2 commands give you the corrects parameters (try to enter them in a terminal window).

Regards
Xav'
by xaviou
Wed Jan 18, 2017 7:34 am
Forum: wxCode
Topic: Executables with wxFreeChart running in 64 bits mode
Replies: 3
Views: 2252

Re: Executables with wxFreeChart running in 64 bits mode

Hi. It seems the gcc makefile has an error (well, perhaps more than one, but one can be corrected to allow your build). It seems that the build process is trying to link with the opengl wxwidgets lib instead of the aui one. You can correct this : line 342 of the makefile (and only there) replace $(_...
by xaviou
Sun Jan 15, 2017 5:58 pm
Forum: C++ Development
Topic: Suppressing debug alerts
Replies: 5
Views: 1211

Re: Suppressing debug alerts

Hi.

You can rebuild your release libs with the "DEBUG_FLAG=0" command line options : all debug asserts will be removes (but you'll also have to add this to the command line for building your app.
You can also add "wxDEBUG_LEVEL=0" while building your app in your IDE's compiler options.

Regards
Xav'
by xaviou
Mon Dec 26, 2016 12:43 pm
Forum: Platform Related Issues
Topic: Mac makefile made from scratch
Replies: 3
Views: 1018

Re: Mac makefile made from scratch

Hi. As doublemax said, you need to creare an application bundle. But if you want to make some tests without creating a bundle, you just need to make a call to "SetFile" : SetFile -t APPL YourExecutableFile Note that you will also have to make this call if you create a bundle. Regards Xav' Edit: this...