Re: [wxVTK] Problems on Mac OS 10.5 and wxWidgets 2.8.7
Brought to you by:
malat
|
From: Doug M. <mc...@ia...> - 2008-08-10 23:26:36
|
On Aug 10, 2008, at 5:46 PM, "Mathieu Malaterre" <mat...@gm...
> wrote:
> 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 get a blank window.
> 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
Everything makes sense and looks fine. I am not sure what is going on.
Doug
|