On Jun 2, 2011, at 3:35 AM, Christian Schmitz wrote: > > Am 02.06.2011 um 00:28 schrieb Michael Diehr: > >>> Christian, it seems that using these calls it should be fairly easy to >>> update OverlayWindowMBS.AttachToWindow to work in Cocoa, no? > > Well, I add those child window methods to NSWindowMBS class. For an > OverlayMBS you can get the NSWindowMBS object and do whatever you like. > > But for OverlayWindowMBS, well that's a carbon window. >> >> NSWindowAttachWindowOrdered(ptr(self.Handle), ptr(childWindow.handle), >> NSWindowAbove) > > I wonder why this does not crash if you pass the handle of the > OverlayWindowMBS!? > A NSWindow* is expected there.
That makes sense. In fact, I would like to consolidate my code into a single class (right now I'm using OverlayMBS for Win32, and OverlayWindowMBS for Mac). Question: is it possible with the REALbasic window class to draw transparent background colors (e.g. to use an alpha value in the window.paint or canvas.paint event) ? If so, I could even use a normal realbasic window... _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
