Search found 16 matches

by stegemma
Wed Oct 31, 2018 5:55 pm
Forum: C++ Development
Topic: Binding wxEVT_LEFT_DOWN doesn't work
Replies: 2
Views: 1119

Re: Binding wxEVT_LEFT_DOWN doesn't work - SOLVED

I've finally solved! The control were in this position of the form: wxBoxSizer wxSplitterWindow wxPanel wxBoxSizer CustomControl (clsWxBoard) Moving the control outside the splitter let the mouse events to work: wxBoxSizer wxSplitterWindow wxPanel wxBoxSizer CustomControl (clsWxBoard) Still I don't ...
by stegemma
Wed Oct 31, 2018 5:42 pm
Forum: C++ Development
Topic: Binding wxEVT_LEFT_DOWN doesn't work
Replies: 2
Views: 1119

Binding wxEVT_LEFT_DOWN doesn't work

Years ago, I've write a custom chessboard component, that worked well. After the last update to wxWidgets, the component doesn't see mouse events anymore. I don't use an event table but dynamically bind the events this way: class clsWxBoard : public wxControl { protected: virtual void OnPaint(wxPain...
by stegemma
Mon Aug 24, 2015 1:57 pm
Forum: Platform Related Issues
Topic: fatal error with trunk built on OS X
Replies: 4
Views: 4818

Re: fatal error with trunk built on OS X [SOLVED]

Because the library compiles fine, I've checked the command line parameters of the wxWidgets library build between my sources build. To make it works, I should have to add this command-line parameters: -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacO...
by stegemma
Mon Aug 24, 2015 10:43 am
Forum: Platform Related Issues
Topic: fatal error with trunk built on OS X
Replies: 4
Views: 4818

Re: fatal error with trunk built on OS X

I've the same error on Mac OS X Yosemite, with the "stable" 3.0.2 but I can't find the options HAVE_TYPE_TRAITS in setup.h. It's various days that I try to use wxWidgets 3.0.2 on Mac OS X Yosemite and it is really a pain: the library itself compiles without errors but when you try to creat...
by stegemma
Fri Dec 28, 2012 11:31 am
Forum: Component Writing
Topic: Cross platform component
Replies: 6
Views: 8976

Re: Cross platform component

I've heard of someone who used OpenGL to creates a complete portable interface, designing forms, menus and so on with OpenGL directives. You can surely write C++ portable classes (i've done by myself for db Handling, sockets, threads, odbc and so on) but you need some pure virtual class to handle sc...
by stegemma
Fri Dec 28, 2012 11:22 am
Forum: Component Writing
Topic: Can't select first column in wxGrid
Replies: 3
Views: 6644

Re: Can't select first column in wxGrid

Finally, here's my work-around to this problem:

instead of HideCol(col) i use:

Code: Select all

SetColMinimalAcceptableWidth(0);
SetColSize(col, 0);
Not very good because user can expand hidden columns... but it looks as that columns are hidden and for now it's good enough, for me.
by stegemma
Fri Dec 28, 2012 10:32 am
Forum: Component Writing
Topic: Can't select first column in wxGrid
Replies: 3
Views: 6644

Re: Can't select first column in wxGrid

Sorry to have to reply to myself, but i have posted a simple project to reproduce the bug: http://www.getfile.org/public/GridBug.zip You can do it by yourself, just create a dialog with a grid and then add this row to your MainDialog costructor: m_grid->HideCol(0); Run it and try to click to column ...
by stegemma
Fri Dec 28, 2012 10:05 am
Forum: Component Writing
Topic: Can't select first column in wxGrid
Replies: 3
Views: 6644

Re: Can't select first column in wxGrid

I've found the point in grid.cpp where it fails: int wxGrid::PosToLinePos(int coord, bool clipToMinMax, const wxGridOperations& oper) const [...] // check if the position is beyond the last column const int lineAtMaxPos = oper.GetLineAt(this, maxPos); if ( coord >= lineEnds[lineAtMaxPos] ) retur...
by stegemma
Fri Dec 28, 2012 9:27 am
Forum: Component Writing
Topic: Can't select first column in wxGrid
Replies: 3
Views: 6644

Can't select first column in wxGrid

I have a component derived from wxGrid and i use wxGridTableBase to handle grid contents. My grid component only bind this events: Bind(wxEVT_GRID_SELECT_CELL, &clsWxGrid::OnSelectCell, this); Bind(wxEVT_GRID_COL_SIZE, &clsWxGrid::OnGridColSize, this); The problem is that my project use some...
by stegemma
Wed Oct 24, 2012 8:49 pm
Forum: Platform Related Issues
Topic: Changing labels on Mac menu bar
Replies: 5
Views: 2468

Re: Changing labels on Mac menu bar

When I needed a compiled message catalog, I opened the .po file in POEdit and just saved it, having "Automatically compile .mo file on save" checked in File/Preferences Editor Tab. Many thanks to PB and doublemax. It works! I've sligtly changed the code in: http://wiki.wxwidgets.org/Inter...
by stegemma
Wed Oct 24, 2012 4:52 pm
Forum: Platform Related Issues
Topic: Changing labels on Mac menu bar
Replies: 5
Views: 2468

Re: Changing labels on Mac menu bar

I'm trying internationalization using wxLocale but it is not clear how to get a .mo file from it.po
by stegemma
Wed Oct 24, 2012 3:43 pm
Forum: Platform Related Issues
Topic: Changing labels on Mac menu bar
Replies: 5
Views: 2468

Re: Changing labels on Mac menu bar

Sorry, missed information:

wxWidgets 2.9.4 - static build release unicode
compiler GCC/G++ 4.2.1
CodeLite / wxFormBuilder
MAC OS X 10.7.5
by stegemma
Wed Oct 24, 2012 1:36 pm
Forum: Platform Related Issues
Topic: Changing labels on Mac menu bar
Replies: 5
Views: 2468

Changing labels on Mac menu bar

I have to translate label in standard application menu bar, on MAC OS X. Using FindItem doesn't works, because menu items are in different menu than those of main wxMenuBar of my frame. The menu items are added by wxMenuBar::Init() function (in wxWidgets sources). I don't want to subclass just to ch...
by stegemma
Wed May 13, 2009 8:33 am
Forum: C++ Development
Topic: wxDialog hangs
Replies: 4
Views: 1175

Thansk, your suggestion was helpfull. I've deleted almost all, from my application, and i've found the problem!!! I was using "Visual Leak Detector" and maybe was that program that originates the problem. I've just deleted #include <vld.h> from my sources and now it works!!! Thanks for the...
by stegemma
Wed May 13, 2009 5:18 am
Forum: C++ Development
Topic: wxDialog hangs
Replies: 4
Views: 1175

Whel i use wxFileSelector, it hangs while calling GetSaveFileName: static bool DoShowCommFileDialog(OPENFILENAME *of, long style, DWORD *err) { if ( style & wxFD_SAVE ? GetSaveFileName(of) : GetOpenFileName(of) ) return true; Some other simple test works, the true program doesn't. I've debugged ...