GTK implementation (was: Re: Re[6]: [wx-dev] New event)

Igor Korot ikorot at earthlink.net
Fri Feb 1 22:07:04 PST 2008


Hi,
I started looking at the GTK implementation and got a question.
What is the difference between the wxFrame and wxTopLevelWindowGTK.

In wxMSW, I modified wxFrame, but looking at the GTK part, it
looks like I will need to modify the latter.

Am I right? Or maybe I was wrong on MSW side?

Thank you.

-----Original Message-----
>From: Vadim Zeitlin <vadim at wxwidgets.org>
>Sent: Feb 1, 2008 12:16 PM
>To: wx-dev at lists.wxwidgets.org
>Subject: Re[6]: [wx-dev] New event
>
>On Thu, 31 Jan 2008 22:02:31 -0500 (EST) Igor Korot <ikorot at earthlink.net> wrote:
>
>IK> In toolbar.h:
>IK> 
>IK> extern WXDLLIMPEXP_CORE const wxEventType wxEVT_COMMAND_TOOLBAR_CUSTOMIZE;
>IK> 
>IK> typedef void (wxEvtHandler::*wxToolbarCustomizeEventFunction)(wxCommandEvent&);
>IK> 
>IK> #define wxToolbarCustomizeEventHandler(func) \
>IK>     (wxObjectEventFunction)(wxEventFunction)wxStaticCastEvent(wxToolbarCustomizeEventFunction, &func)
>IK> 
>IK> #define EVT_TOOLBAR_CUSTOMIZE(winid,func) \
>IK>     wx__DECLARE_EVT0(wxEVT_COMMAND_TOOLBAR_CUSTOMIZE, wxToolbarCustomizeEventHandler(func))
>
> This macro doesn't use its winid argument.
>
>IK> In msw/frame.cpp
>IK> 
>IK> BEGIN_EVENT_TABLE(wxFrame, wxFrameBase)
>IK>     EVT_SYS_COLOUR_CHANGED(wxFrame::OnSysColourChanged)
>IK>     EVT_TOOLBAR_CUSTOMIZE(wxFrame::OnToolbarCustomize)
>
> And here you pass just one argument to a macro which expects two of them.
>The errors are probably due to this.
>
> Regards,
>VZ
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: wx-dev-unsubscribe at lists.wxwidgets.org
>For additional commands, e-mail: wx-dev-help at lists.wxwidgets.org
>





More information about the wx-dev mailing list