[Mono-osx] On GlossyClock

kjpou kjpou at pt.lu
Tue Jan 11 08:44:11 EST 2011


Maxi

    is this the intended behavior? is it possible to make the windows 
really transparent, like in samples/RoundedTransparentWindow?

I do not see why this would not be possible.

I do not know if it is the intended behavior or not as it was a program 
that I grabbed from the site mentioned in the readme.  I was looking for 
a something simple that used CoreAnimation Layers so that I could 
implement the LayerManagement and Constrainment bindings in MonoMac.  It 
also used KVC and KVO which also helped me track down some more problems 
within MonoMac.

    Is it possible to achieve this somehow? I searched in the web, but 
found that overriding SendEvent() seems the choice to go.

The overriding of SendEvent is the only way I have used to do what you 
want.  Although have never tried it with MonoMac only obj-c.




On 1/11/11 1:12 PM, Maxi Combina wrote:
> Hello,
>
> I am poking with the samples/GlossyClock project, which I find very 
> interesting: it has some features which I'm interested in, such as 
> moving a window by click and drag on the background and transparent 
> window.
> However, I do have some doubts:
>
> a) The window is transparent, but clicks don't really go through it. 
> You can still click in the transparent border and move the window. You 
> can more easily achieve this effect if you change 
> ClickView.SetupBackGroundLayer() to:
>      backgoundLayer.CornerRadius = 120.0f;
>
>    is this the intended behavior? is it possible to make the windows 
> really transparent, like in samples/RoundedTransparentWindow?
>
> b) As far as I understand, the move-by-clicking-and-dragging is done 
> by setting MainWindow.MovableByWindowBackground = true, which I found 
> very nice (my current approach is to override NSWindow.SendEvent()).
>    However, I found that the MovableByWindowBackground is not useful 
> if the user clicks in, say, a WebView inside the window (which is my 
> case).
>    Is it possible to achieve this somehow? I searched in the web, but 
> found that overriding SendEvent() seems the choice to go.
>
>
> Thanks
> Maxi
>
> PS: I don't know anything about cocoa layers, maybe the answer to my 
> questions are obvious.
> -- 
> *Maxi Combina*
> Tel: +34 902 760 111
> C/ Constitucio, 3 Sant Just Desvern 08960 (Barcelona), SPAIN
> www.passwordbank.com <http://www.passwordbank.com>
>
> This message and its attachments are sent from PasswordBank, Inc. and 
> may contain information that is
> confidential. If you are not the intended recipient, you are 
> prohibited from printing, copying, forwarding or
> saving them. Please delete the message and attachments without 
> printing, copying, forwarding or saving
> them, and notify the sender immediately. Message transmission is not 
> guaranteed to be secure.
>
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110111/8588863b/attachment-0001.html 


More information about the Mono-osx mailing list