Re: [wxVTK] Problems on Mac OS 10.5 and wxWidgets 2.8.7
Brought to you by:
malat
|
From: Mathieu M. <mat...@gm...> - 2008-08-10 22:46:45
|
Doug,
One last question, what do you mean by:
On Sat, Aug 9, 2008 at 4:21 AM, Doug McCorkle <mc...@ia...> wrote:
> And the windows do not render properly.
Does it segfault ?
Do you get a black/white screen ?
Is it scrambled ?
I did dive into the core of wxVTK and I think I am doing the right
things (I do not have a MacOSX system to check). But basically
vtkCocoaRenderWindow expect:
- the NSView to be a 'DisplayId'
- the NSWindow to be a 'WindowId'
Everything is being setup in wxVTK::OnPaint(). Worse case scenario is
that the NSView needs to be explicitily passed (not done currently):
Something along the line:
wxVTK::OnPaint()
{
...
wxTopLevelWindowCocoa toplevel = this->GetTopLevel()
WX_NSWindow nswin = toplevel->GetNSWindow();
this->SetWindowId( nswin );
...
}
the this->DisplayId is handle using the internal this->GetWindowHack
implementation
Let me know if this makes any sense for you,
--
Mathieu
|