Search found 8 matches

by EzPresso
Fri Sep 17, 2010 10:11 am
Forum: C++ Development
Topic: wx 2.9.1 - I do not understand the event posting anymore
Replies: 9
Views: 2719

QueueEvent, when used in wxWindow, is a protected method. Yes, but it is public in wxEvtHandler. And you are right. You may use myWindow->GetEvtHandler()->QueueEvent() The documentation for wxWindow class states: ... ProcessEvent() itself can't be called for wxWindow objects as it ignores the event...
by EzPresso
Thu Sep 16, 2010 9:38 pm
Forum: C++ Development
Topic: wx 2.9.1 - I do not understand the event posting anymore
Replies: 9
Views: 2719

Doublechecked the wxWidgets docs: virtual void wxEvtHandler::QueueEvent(wxEvent* event) [virtual] This method is similar to ProcessEvent() but while the latter is synchronous, i.e. the event is processed immediately, before the function returns, this one is asynchronous and returns immediately while...
by EzPresso
Thu Sep 16, 2010 9:26 pm
Forum: C++ Development
Topic: Need help writing “backgroundless” widget for wxWidgets
Replies: 0
Views: 499

Need help writing “backgroundless” widget for wxWidgets

Hi there. I asked this question on stackoverflow 3 days back, but still not received any answers, so I'm posting it here. My question is concerned with GTK2 and wxWidgets (actually wxGTK). In wxGTK all controls have grey background by default and it is impossible to remove it. I have a textured pane...
by EzPresso
Thu Sep 16, 2010 9:20 pm
Forum: C++ Development
Topic: wx 2.9.1 - I do not understand the event posting anymore
Replies: 9
Views: 2719

You should always use QueueEvent methods within secondary threads IMHO. Why don't you just create your evt object on heap?
by EzPresso
Thu Apr 16, 2009 7:59 pm
Forum: C++ Development
Topic: SIGSEGV. How to react on event with sender destruction.
Replies: 3
Views: 1002

van_user wrote:Does Object1 has Destory( ) method?
In fact, no.
by EzPresso
Wed Apr 15, 2009 4:47 pm
Forum: C++ Development
Topic: SIGSEGV. How to react on event with sender destruction.
Replies: 3
Views: 1002

SIGSEGV. How to react on event with sender destruction.

The problem is:
Object1 sends event using ProcessEvent() method;
Object2 handles the event and should delete Object1 instantly.
How to implement it? I'm trying to avoid delayed destruction schemes (callbacks, etc.).

Language is c++.
by EzPresso
Wed Aug 27, 2008 1:43 pm
Forum: wxWidgets Development (Russian)
Topic: Можно ли рисунок сделать полупро
Replies: 11
Views: 4747

Вот спасибо! С Вашими заголовками действительно компилируется. А то в сети ходят 3 архива инклюдов GDI+, где LockBits вызывается с референсом, а не указателем в кач. первого аргумента!
Респект!!! :D
by EzPresso
Tue Aug 26, 2008 5:48 pm
Forum: wxWidgets Development (Russian)
Topic: Можно ли рисунок сделать полупро
Replies: 11
Views: 4747

Если Вы используете MinGW, откомпилировать wxWidgets с GDI+ (пока) не получится. Вы можете сделать прозрачность и без GDI+. Смотрите пример в samples/images. Код в файле image.cpp, начинающийся после комментария "// Then, draw colourful alpha-blended stripes".