Search found 428 matches

by xaviou
Sun Sep 03, 2017 8:18 am
Forum: Platform Related Issues
Topic: Toolbar tools are not showing on Windows
Replies: 1
Views: 588

Re: Toolbar tools are not showing on Windows

Hi. I don't see any wxToolBar::Realize() call in your code. You should call it after you've created the tools : auto toolbar = this->CreateToolBar(wxTB_FLAT | wxTB_HORIZONTAL | wxTB_TEXT); toolbar->SetToolBitmapSize(wxSize(16, 16)); toolbar->AddTool(wxID_ANY, "New Game", wxBitmap(new16), "Start a ne...
by xaviou
Sun Aug 27, 2017 7:28 am
Forum: wxCode
Topic: wxPdfDoc internal links with WriteXml
Replies: 2
Views: 1408

Re: wxPdfDoc internal links with WriteXml

Hi.

Thank-you for your response utelle.

I did not think of the fact I could write the name of the html anchor in top of each page with WriteXml and then creating the rest of the page with Cell() calls.

Sometimes, things are so simple....

Regards.

Xav'
by xaviou
Fri Aug 25, 2017 9:20 am
Forum: wxCode
Topic: wxPdfDoc internal links with WriteXml
Replies: 2
Views: 1408

wxPdfDoc internal links with WriteXml

Hi. I'm currently using wxPdfDocument (last git commit). One of the document I generate is a list of people : the first page(s) contains the summary : a simple list created with a table using WriteXml() the following pages are details of each person (one per page) created with "classic" Cell() calls...
by xaviou
Mon Aug 21, 2017 5:32 pm
Forum: C++ Development
Topic: wxFileInputStream always goes to the end of file (Eof)
Replies: 2
Views: 487

Re: wxFileInputStream always goes to the end of file (Eof)

Hi. The problem is that the wxTextFile loads the entire content of the file into memory, so when you start the loop, the wxFileInputStream has already reached its end. 2 thing you can do : You don't have to use the wxFileInputStream : wxTextFile can read a real file itself Use the wxTextFile Eof() f...
by xaviou
Fri Aug 04, 2017 9:05 am
Forum: Platform Related Issues
Topic: OSX ToolBar tool with dropdown menu
Replies: 4
Views: 793

Re: OSX ToolBar tool with dropdown menu

Hi xavious, On top of that I don't think any of the usual native application have a toolbar with a tool for that. The usual design is to have a menu for the recently used files, but it's of course up to the application {author}. Yes, I know that. But this is a small application without any menu bar....
by xaviou
Thu Aug 03, 2017 8:45 am
Forum: Platform Related Issues
Topic: OSX ToolBar tool with dropdown menu
Replies: 4
Views: 793

Re: OSX ToolBar tool with dropdown menu

Hi. Can you try to use wxComboBox? Well, I don't think it will have a pretty look :( The goal was just to have a dropdown menu with the recents files list, for a quick re-open. I'll try to create my own control (a simple panel with 2 bitmaps buttons side by side) and add it to the toolbar with "AddC...
by xaviou
Wed Aug 02, 2017 1:25 pm
Forum: Platform Related Issues
Topic: OSX ToolBar tool with dropdown menu
Replies: 4
Views: 793

OSX ToolBar tool with dropdown menu

Hi. I have a small application written with wx-3.1.1 that uses a classical toolbar (bitmaps only). Tee first tool of this toolbar is for opening a datas file (showing an "Open File" dialog). I've just added a "recents files list" to this application, with a dropdown menu on the right of this tool. I...
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: 618

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: 33
Views: 5348

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

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

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

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

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

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

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'