Search found 6 matches

by aux88
Mon Jul 23, 2012 6:17 pm
Forum: wxWidgets Development (Russian)
Topic: Mac OS X EVT_ERASE_BACKGROUND
Replies: 2
Views: 5890

Re: Mac OS X EVT_ERASE_BACKGROUND

Разобрался. MainFrame_OnPaint() перерисовывает только MainFrame без дочерних контролов.
Нужно было убрать event.Skip() в OnPaint()
by aux88
Mon Jul 23, 2012 6:15 pm
Forum: C++ Development
Topic: EVT_ERASE_BACKGROUND on Mac OS X
Replies: 4
Views: 1905

[SOLVED] Re: EVT_ERASE_BACKGROUND on Mac OS X

Finally got it! Thanks, doublemax.
MainFrame_OnPaint() repaints only the frame not the children. Removing event.Skip() in OnPaint() resolves the issue.
by aux88
Mon Jul 23, 2012 2:10 pm
Forum: C++ Development
Topic: EVT_ERASE_BACKGROUND on Mac OS X
Replies: 4
Views: 1905

Re: EVT_ERASE_BACKGROUND on Mac OS X

doublemax, thanks, I've read your posts while searching. unfortunately I need a rounded box around a group of controls, not just a solid packground. May I ask: 1. wxPanel - I am using wxFormBuilder, may be I am doing something wrong, but I put wxFlexGridSizer on wxFrame and this wxFlexGridSizer lays...
by aux88
Mon Jul 23, 2012 9:40 am
Forum: C++ Development
Topic: EVT_ERASE_BACKGROUND on Mac OS X
Replies: 4
Views: 1905

EVT_ERASE_BACKGROUND on Mac OS X

Version 2.8.12. Cannot erase background on OS X 10.6. MainFrame is derived from wxFrame. In MainFrame ctor: this->SetBackgroundStyle(wxBG_STYLE_CUSTOM); Basically I tried different approaches by clearing background in OnPaint() and implementing an empty OnEraseBackground() or just by calling dc->Cle...
by aux88
Mon Jul 23, 2012 9:31 am
Forum: wxWidgets Development (Russian)
Topic: Mac OS X EVT_ERASE_BACKGROUND
Replies: 2
Views: 5890

Re: Mac OS X EVT_ERASE_BACKGROUND

Версия 2.8.12
by aux88
Mon Jul 23, 2012 6:13 am
Forum: wxWidgets Development (Russian)
Topic: Mac OS X EVT_ERASE_BACKGROUND
Replies: 2
Views: 5890

Mac OS X EVT_ERASE_BACKGROUND

Может, кто сталкивался? Вот... не ирейзится фон в общем на wxFrame на МАК ОС ИКС MainFrame унаследован от wxFrame, присоединены OnPaint и OnEraseBackground, которые выглядят следующим образом: void MainFrame::MainFrame_OnPaint(wxPaintEvent& event) { #if 1 wxPaintDC dc(this); dc.SetBackground(wxBrush...