Search found 52 matches

by vid512
Sun Jan 22, 2012 10:59 pm
Forum: C++ Development
Topic: Tab-character is not shown by wxMessageBox on Windows 7
Replies: 1
Views: 586

Re: Tab-character is not shown by wxMessageBox on Windows 7

This seems to be dependant upon which Common controls are selected in your manifest. If you edit your manifest and delete following entry from it, the "old style" controls appear: <assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' pu...
by vid512
Thu Mar 03, 2011 12:58 pm
Forum: Platform Related Issues
Topic: wxGTK 2.9.1: Tabbing over wxTextCtrl(wxTE_MULTILINE) broken?
Replies: 5
Views: 1376

Thanks for updating. Kinda weird behavior, IMO, to allow tabs in multi-line controls only.

I'll have to try adding Tab traversal myself.
by vid512
Mon Feb 28, 2011 10:43 pm
Forum: Platform Related Issues
Topic: wxGTK 2.9.1: Tabbing over wxTextCtrl(wxTE_MULTILINE) broken?
Replies: 5
Views: 1376

I'm afraid I am a bit too busy right now to register and learn to properly use whatever bugtracking system wx uses. You are obviously more experienced, could you please report it yourself?
by vid512
Mon Feb 28, 2011 10:26 am
Forum: Platform Related Issues
Topic: wxGTK 2.9.1: Tabbing over wxTextCtrl(wxTE_MULTILINE) broken?
Replies: 5
Views: 1376

wxGTK 2.9.1: Tabbing over wxTextCtrl(wxTE_MULTILINE) broken?

Following code works fine under wxMSW-2.8.11, wxMSW-2.9.1 and wxGTK-2.8.11, but under wxGTK-2.9.1 tab traversing doesn't work when focus is on multiline text control (as if it had wxTE_PROCESS_TAB style). #include <wx/wx.h> class MyApp: public wxApp { virtual bool OnInit(); }; IMPLEMENT_APP(MyApp) c...
by vid512
Mon Feb 28, 2011 10:18 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 2283

PB: You're right. Seems in my Windows test I was linking to non-debug version of MSVCRT even in debug build. I'm in hurry a bit right now, so I can't test now.

briceandre: OK, I understand.
by vid512
Mon Feb 28, 2011 10:05 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 2283

There is no assert on wxMSW, only on wxGTK. And that's exactly the problem - IMO wxGTK *should* catch this error itself, if that is possible.
by vid512
Mon Feb 28, 2011 10:00 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 2283

Yes, this happens in debug version. Release version segfaults, as expected.

According to wxWindow::Destroy() description, this should only schedule dialog destruction for later, so checking for double scheduling should be possible.
by vid512
Mon Feb 28, 2011 9:50 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 2283

Thanks, that's it.

However, wxGTK should IMO still at least catch this error in its assert, not let it pass to glibc assert / segfault.
by vid512
Mon Feb 28, 2011 9:37 am
Forum: Platform Related Issues
Topic: wxGTK: Invalid free() call
Replies: 10
Views: 2283

wxGTK: Invalid free() call

Following code causes "double free() or corruption" glibc error on wxGTK. Happens with both 2.8.11 and 2.9.1. Same code works fine on wxMSW. #include <wx/wx.h> class MyApp: public wxApp { virtual bool OnInit(); }; IMPLEMENT_APP(MyApp) class MyDlg: public wxDialog { protected: void OnOK(wxCommandEven...
by vid512
Sun Feb 27, 2011 10:01 pm
Forum: Platform Related Issues
Topic: wxGTK: Menu accelerator overrides CTRL+C in wxTextCtrl
Replies: 0
Views: 602

wxGTK: Menu accelerator overrides CTRL+C in wxTextCtrl

In my app, I use CTRL+C menu accelerator, eg. menuFile->Append( ID_Connect, _("&Connect\tCTRL-C") ); Under wxMSW, this accelerator works unless I am currently focues in text control (wxTextCtrl). In such case default copy-to-clipboard behavior of CTRL+C takes priority. This is desired behavior for m...
by vid512
Wed Jan 12, 2011 4:09 pm
Forum: C++ Development
Topic: wxMessageBox with different font
Replies: 2
Views: 679

wxMessageBox with different font

Is there some way to change font of wxMessageBox? Or do I have to reimplement its functionality?
by vid512
Mon Dec 27, 2010 1:45 pm
Forum: Platform Related Issues
Topic: Best Platform-portable way to manage icon in source?
Replies: 1
Views: 771

Best Platform-portable way to manage icon in source?

My application runs under Windows and linux/GNOME. Majority of development goes on under Windows. Currently I only support application icon (icon shown on taskbar and during ALT+Tab task switching) for Windows. My icon is currently stored in .bmp file, from which .ico is generated. This .ico is put ...
by vid512
Fri Nov 19, 2010 12:57 pm
Forum: C++ Development
Topic: Warning: duplicate section ... has different size
Replies: 1
Views: 3345

Warning: duplicate section ... has different size

I have built wx2.9 library using mingw32-make (mingw with gcc4): cd build\msw mingw32-make -f makefile.gcc UNICODE=1 SHARED=0 MONOLITHIC=1 DEBUG=0 Now I use wx-config-win utility, with evironment variable WXWIN set to wx2.9 directory. My linker command line is: mingw32-g++.exe -o bin\wx29-release\hi...
by vid512
Thu Nov 18, 2010 9:46 pm
Forum: C++ Development
Topic: negative GetPixelFormat().y
Replies: 0
Views: 500

negative GetPixelFormat().y

I initialize font like this: default_font = wxFont(13, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false); Later, I try to create single-line text edit, whose height needs to be set depending on current height of font. So, I use: int line_height = config.default_font.GetPixelSize(...
by vid512
Mon Nov 08, 2010 12:45 am
Forum: Platform Related Issues
Topic: Multiple wxWidgets versions with Code::Blocks (no MSYS)
Replies: 4
Views: 1169

I already tried this idea: (from previous post) I was also thinking of hardcoding what wx-config would have returned into each build target, but here I found myself unable to add "wx-2.8" or "wx-2.9" subdirectory of "include" directory without using full path to MinGW. I can't put full path to MinG...