Re: [MBS] OverlayWindowMBS.AttachToWindow broken in Cocoa
Am 02.06.2011 um 18:21 schrieb Michael Diehr: > To confirm: is it true that OverlayMBS internally uses an NSWindow? Is that > true in both Carbon and Cocoa builds? Only on Cocoa. > If so, I would prefer to just move my code to OverlayMBS for all targets. :-) Greetings Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] OverlayWindowMBS.AttachToWindow broken in Cocoa
On Jun 2, 2011, at 9:13 AM, Christian Schmitz wrote: > > Am 02.06.2011 um 18:05 schrieb Michael Diehr: > >> 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... > > Well, in Carbon: yes if you use MakeTransparentMBS. > > For Cocoa I still need to find a way to enable it. Currently those windows > are marked as non transparent so no alpha gives you black. Thanks. To confirm: is it true that OverlayMBS internally uses an NSWindow? Is that true in both Carbon and Cocoa builds? If so, I would prefer to just move my code to OverlayMBS for all targets. ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] OverlayWindowMBS.AttachToWindow broken in Cocoa
Am 02.06.2011 um 18:05 schrieb Michael Diehr: > 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... Well, in Carbon: yes if you use MakeTransparentMBS. For Cocoa I still need to find a way to enable it. Currently those windows are marked as non transparent so no alpha gives you black. Greetings Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] OverlayWindowMBS.AttachToWindow broken in Cocoa
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 mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] OverlayWindowMBS.AttachToWindow broken in Cocoa
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. Greetings Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
Re: [MBS] CarbonEventsTimerMBS - calculated interval much bigger than PeriodSeconds
Am 02.06.2011 um 01:20 schrieb Dan Stenning: > > Christian, > Ive been benchmarking typical timer periods for sub milisecond periods, and > seem to always get real intervals greater thanthe period set. > So for a PeriodSeconds value of 241 microseconds ( periodseconds = 0.000241 > ) i am getting actualdelay ranging from 280 to 411 microseconds. > > Ive enclosed the test project im using for this. Yes. And? CPU time is scheduled and if the other code does not yield back, the timer can't fire. But I'm happy that with our timers, we can have a resolution of more than 1000 per second. Greetings Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ ___ Mbsplugins_monkeybreadsoftware.info mailing list mbsplugins@monkeybreadsoftware.info https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info