Created
March 7, 2016 10:52
-
-
Save rtroe/d450f49f7e4410d73ac5 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. | |
GtkWidget* widget = panel->GetHandle(); | |
//Dig through too get x11 handle | |
Window w = gdk_x11_drawable_get_xid(gtk_widget_get_window(panel->GetHandle())); | |
//Current line crashes with Bad Window error | |
//wind = new Xw_Window(aDisplayConnection, w); | |
//Currently possible too only create seperate Window for Open Cascade | |
Handle(Xw_Window) wind = new Xw_Window(aDisplayConnection,"test", 20,20,400,400); | |
//Set and Map OpenCascade Window too view | |
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