Created
March 7, 2016 10:56
-
-
Save rtroe/aef10b7b9d26be8ec535 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Get wxPanel Handle (only for wxGTK/Linux) | |
GtkWidget* widget = panel->GetHandle(); | |
//Required too avoid segfault happens. | |
gtk_widget_realize( widget ); | |
gtk_widget_set_double_buffered(widget, 0); | |
//Get Window from wxPanel Handle. | |
Window wid = GDK_WINDOW_XWINDOW( widget->window ); | |
XSync(GDK_WINDOW_XDISPLAY(widget->window), False); | |
//Create OpenCascade Window as wrapper around wxPanel Handle. | |
wind = new Xw_Window(aDisplayConnection, wid); | |
//Set Window | |
mView->SetWindow(wind); | |
if(!wind->IsMapped()) | |
wind->Map(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment