Search found 397 matches

by xaviou
Wed Nov 29, 2017 8:40 am
Forum: C++ Development
Topic: load list item in thread.And then error [vector.h(404) assert "idx < m_size" failed in at().] has occurred.
Replies: 5
Views: 106

Re: load list item in thread.And then error [vector.h(404) assert "idx < m_size" failed in at().] has occurred.

Hi So is there any way to speed up loading list? You can try " Freeze() " and " Thaw() " on your wxTreeListCtrl respectively before and after adding your items to it. It can really speed-up the process (but perhaps it isn't enough : give it a try). Another way would be to add the...
by xaviou
Thu Nov 23, 2017 6:57 am
Forum: Compiler / Linking / IDE Related
Topic: C::B WxW 3.0.3 gcc 5.0.1 problems (undef ref / bad reloc)
Replies: 13
Views: 176

Re: C::B WxW 3.0.3 gcc 5.0.1 problems (undef ref / bad reloc)

Hi New Pagodi, In this case I believe the text there should be: CXXFLAGS=-std=c++11 because that's what should be passed to the compiler. If you have it installed, you can try it. Thank you. I do not agree with you : the libs were build with " CXXFLAGS=-std=gnu++11 " not " CXXFLAGS=-s...
by xaviou
Tue Nov 07, 2017 8:57 pm
Forum: wxCode
Topic: wxpdfdoc library how prints unicode?
Replies: 7
Views: 278

Re: wxpdfdoc library how prints unicode?

Hi You can also try to register your font before use it : pdf.AddPage(wxPORTRAIT,wxPAPER_A4); wxFont fontTimes(16, wxFONTFAMILY_ROMAN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, _T("Times"), wxFONTENCODING_DEFAULT); wxPdfFontManager* fntMngr = wxPdfFontManager::GetFontManager(); fntMn...
by xaviou
Tue Nov 07, 2017 12:53 pm
Forum: Compiler / Linking / IDE Related
Topic: Win7:How to build with different Gcc versions and use them?
Replies: 12
Views: 237

Re: Win7:How to build with different Gcc versions and use them?

Hi I don't think the error you get comes from the CFG part. The fact that you've added CFG=MinGW630 to your command line will just create specific folders for the intermediate build files (in the ' build/msw " sub directory) and for the resulting build files (in your case, they will be placed i...
by xaviou
Tue Nov 07, 2017 6:38 am
Forum: Compiler / Linking / IDE Related
Topic: Win7:How to build with different Gcc versions and use them?
Replies: 12
Views: 237

Re: Win7:How to build with different Gcc versions and use them?

Hi. If you want to make differents builds, you can use the "CFG' parameter on the command line. It will result in differents "lib" sub-folders. For example : mingw32-make -f makefile.gcc SHARED=0 MONOLITHIC=0 BUILD=debug CFG=xyz This will place the libs file in %WXWIN%\lib\gcc_lib xyz...
by xaviou
Sat Oct 28, 2017 8:09 am
Forum: C++ Development
Topic: Ohm and Mho Symbols
Replies: 1
Views: 70

Re: Ohm and Mho Symbols

Hi You can try with the following : const wxChar* ResistUnits[] = { _T("u\u2126"), _T("m\u2126"), _T(" \u2126"), _T("k\u2126"), _T("M\u2126") }; const wxChar* CondUnits[] = { _T("u\u2127"), _T("m\u2127"), _T(" \u2127"), ...
by xaviou
Wed Oct 18, 2017 6:54 am
Forum: Compiler / Linking / IDE Related
Topic: Error while compiling wxWidgets
Replies: 12
Views: 1719

Re: Error while compiling wxWidgets

Thanks again. This worked. But I also had to change it in lib\gcc_lib\mswu\wx\setup.h after the build. Because you didn't made a clean build : this file is copied the first time you launch the build. But in a "normal" way, I think you should have edited it before the build. Regards Xav'
by xaviou
Tue Oct 17, 2017 12:23 pm
Forum: Compiler / Linking / IDE Related
Topic: Error while compiling wxWidgets
Replies: 12
Views: 1719

Re: Error while compiling wxWidgets

Hi but how to include wxGraphicsContext? adding USE_GUI=1 to the make command did not do the trick. Any suggestions? wxGraphicsContext is disabled by default for other compilers than Visual C++. To enable it you just have to edit the " setup.h " file (in the include/wx/msw subfolder of the...
by xaviou
Sat Sep 23, 2017 8:17 am
Forum: Platform Related Issues
Topic: OSX - Removing menus
Replies: 1
Views: 89

Re: OSX - Removing menus

Ooooops : I forget to delete the related menus // Create the menu bar wxMenuBar *menuBar = new wxMenuBar(); // File menu wxMenu *fileMenu = new wxMenu(); fileMenu->Append(wxID_EXIT, wxGetStockLabel(wxID_EXIT, wxSTOCK_WITH_MNEMONIC|wxSTOCK_WITH_ACCELERATOR), wxGetStockHelpString(wxID_EXIT)); menuBar-...
by xaviou
Fri Sep 22, 2017 7:33 pm
Forum: Platform Related Issues
Topic: OSX - Removing menus
Replies: 1
Views: 89

OSX - Removing menus

Hi. I would just like to know if it is safe to remove menus just after their creation on OSX. My app has just 2 menu entries : Exit and About. On OSX, these 2 menu items are handled by the osx-specific menu so I don't need the "File" and "Help" menus witch became empty. But I hav...
by xaviou
Tue Sep 19, 2017 6:10 am
Forum: C++ Development
Topic: SpinCtrl->GetValue() makes the program crash
Replies: 5
Views: 155

Re: SpinCtrl->GetValue() makes the program crash

Hi. I tried to see what was wrong, bug as PB said in the previous post, it is very hard to understand. Nevertheless, I think your problem comes from your variable named " erstesProduktGeometrie ". You never initialize it correctly. In the begenning of your dialog constructor, you make a ca...
by xaviou
Fri Sep 15, 2017 4:37 pm
Forum: Platform Related Issues
Topic: StatusBar field width problem (Linux and OS-X) [SOLVED]
Replies: 5
Views: 262

Re: StatusBar field width problem (Linux and OS-X) [SOLVED]

Hi doublemax. I would try to set the font to wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT ) before getting the text size. I've just tested, but it doesn't work : https://forums.wxwidgets.org/download/file.php?mode=view&id=4409 I'll try to make other tests if I find the time to. Thanks. Xav'
by xaviou
Fri Sep 15, 2017 3:09 pm
Forum: Platform Related Issues
Topic: StatusBar field width problem (Linux and OS-X) [SOLVED]
Replies: 5
Views: 262

Re: StatusBar field width problem (Linux and OS-X) [SOLVED]

Hi. So, and since I had no time to spend on a status-bar, I stated (depending on the concerned app and its requirements) to get ride of this kind of detail using one of these two "workarounds": - Adding a margin to the result of GetTexExtent on Mac (#ifdef __WXOSX__) - Or removing any noti...
by xaviou
Thu Sep 14, 2017 8:11 pm
Forum: Platform Related Issues
Topic: StatusBar field width problem (Linux and OS-X) [SOLVED]
Replies: 5
Views: 262

StatusBar field width problem (Linux and OS-X) [SOLVED]

Hi. I have a status bar with 2 fields (created from the constructor of a wxFrame with " CreateStatusBar(2) ". The second field is for displaying a simple text that never changes. I am trying to set the width of this field to the minimal needed for the text I wand to show. Here is an exampl...
by xaviou
Sun Sep 03, 2017 8:18 am
Forum: Platform Related Issues
Topic: Toolbar tools are not showing on Windows [SOLVED]
Replies: 1
Views: 178

Re: Toolbar tools are not showing on Windows [SOLVED]

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), &...

Go to advanced search