Skip to content

Instantly share code, notes, and snippets.

@rtroe
Created March 7, 2016 10:52
Show Gist options
  • Save rtroe/d450f49f7e4410d73ac5 to your computer and use it in GitHub Desktop.
Save rtroe/d450f49f7e4410d73ac5 to your computer and use it in GitHub Desktop.
//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