Transparent window example?

Richmond Mathewson richmondmathewson at gmail.com
Thu Oct 20 15:49:03 EDT 2011


On 10/20/2011 10:27 PM, Keith (Gulf Breeze Ortho Lab) wrote:
> Hi Again,
>
> Is there a way to set a stack to a blendlevel of say 75, but keep an 
> object (such as a button) at a blendlevel of 0? That is, a somewhat 
> transparent window, but a solid button/control on the transparent window?

'fraid so! blendLevel is strictly inherited; the only way you will 
manage wgat you
want is by using windowShape for your stack and setting the blendLevel 
of your object. The only snag about this is that I think you will be 
quite unable to have a semi-transparent stack.

>
> I have played around with it, but the object seems to inherit the 
> blendlevel of the stack... Even when setting an object's blendlevel to 0.
>
> Thanks,
>
> - Boo
>
> -----Original Message----- From: Klaus on-rev
> Sent: Wednesday, October 19, 2011 7:08 AM
> To: How to use LiveCode
> Subject: Re: Transparent window example?
>
> Hi Keith,
>
> Am 19.10.2011 um 12:25 schrieb Keith (Gulf Breeze Ortho Lab):
>
>> Hi All,
>>
>> Would anyone be able to provide an example of how to make a 
>> transparent window that is resizable? To clarify, a window that looks 
>> like a see-through box. The borders of the window need to be visible, 
>> and the window needs to be resizable accordingly, but the user needs 
>> to be able to see the desktop through the window...
>
> just:
> ...
> set the blendlevel of stack X to Y
> ## where Y = 0 - 100
> ...
> This will only affect the "transparency" of that stack, everthing else 
> like "resizable" is NOT affected!
>
> Check "blendlevel" in the dictionary, it's definitivley no rocket 
> science :-)
>
>> Thanks,
>>
>> - Boo
>
> Best
>
> Klaus
>
> -- 
> Klaus Major
> http://www.major-k.de
> klaus at major.on-rev.com
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list