Page 1 of 1

Place GTK+ control on the wxPanel

Posted: Sun Jan 08, 2017 1:23 am
by ONEEYEMAN
Hi, ALL,
I am trying to place GTK+ control on the wxPanel.

Here is my code:

Code: Select all

CFontPropertyPage::CFontPropertyPage(wxWindow* parent, wxFont *font, int id, const wxPoint& pos, const wxSize& size, long style)
 : wxPanel(parent, id, pos, size, wxTAB_TRAVERSAL)
{
    m_font = font;
    m_fontPanel = gtk_font_selection_new();
    g_object_ref( m_fontPanel );
    g_signal_connect( m_fontPanel, "realize", G_CALLBACK( set_font ), &font );
    DoAddChild( m_fontPanel );
    PostCreation( size );
}
Basically what I'm trying to achieve is to have a cross-platform font property page that can be added to a wxNotebook.

I already have a half-baked MSW version and now I'd like to have GTK+ version.

Thank you for any pointers.