Place GTK+ control on the wxPanel

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4714
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Place GTK+ control on the wxPanel

Post by ONEEYEMAN » Sun Jan 08, 2017 1:23 am

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.

Post Reply