[wxVTK] I need your help for fixing a bug in wxVtk
Brought to you by:
malat
From: Nicolas . <cyb...@ho...> - 2005-04-26 07:59:31
|
hello, I have a little problem with your application and I hope you will help me ;) I have to develop an application for windows and mac, with 3d visualisation in VTK and a nice interface in wxWidget. So I need your wxVtk render window intercactor... My window is splitted into several parts with wxSplitters. It works fine in windows whith wxWidget 2.4.2 ans VTK 4.5 My problem is whith Mac OSX The render of my VTKWindow takes all the space in the root window, so I can't seen my incons, status bar... Your Sample works fine but the SplitSample makes the same mistake. Perhaps the error is in the .cxx file, in GetHandle(), you do : #ifdef __WXMAC__ #if wxCHECK_VERSION(2, 5, 2) //this function became in wx 2.5.2 : MacGetTopLevelWindowRef() handle_tmp = (long)this->MacGetTopLevelWindowRef(); #else handle_tmp = (long)this->MacGetRootWindow(); #endif //wxCHECK_VERSION(2, 5, 2) #endif //__WXMAC__ If you render in the root window or in the top level window, I understand why it's not in my splitterWindow. I didn't found how to do, I tried to call MacGetWindowRef but it doesn't work... I need your help, it's so important for me... Thank's nico. _________________________________________________________________ Ne cherchez plus, trouvez ! Avec le nouveau MSN Search. http://search.msn.fr/ |