Possible : stack with transparent backgound?

2020-09-10 Thread David Bovill via use-livecode
Id like to create a stack  - has to be a stack - and for the text and some 
other elements to be visible but the stack background to be transparent - is 
this possible with some combination of inks and masks and blend levels?
On 2 Sep 2020, 22:03 +0100, Bob Sneidar via use-livecode 
, wrote:
> It appears I have that backwards?
>
> Bob S
>
>
> > On Sep 2, 2020, at 8:28 AM, Bob Sneidar  wrote:
> >
> > Ditto, and I am not sure what noticeable impact one method would have over 
> > another. There was some blurb a long time ago about how these keys are 
> > internally sorted. I believe what was proposed is that a set of NUMERIC 
> > keys beginning with 0 would actually sort correctly.
> >
> > Bob S
> >
> >
> > > On Sep 2, 2020, at 8:24 AM, Ralph DiMola via use-livecode 
> > >  wrote:
> > >
> > > David,
> > >
> > > Nope you have to sort them NUMERIC. As you said this is the only way I 
> > > know of. I do this all the time. I don't know of any other way.
> > >
> > > put the keys of tMyArray into tKeys
> > > sort lines of tKeys numeric
> > > repeat for each line tKey in tKeys
> > >
> > > -- do what you want with tMyArray[tKey]
> > > -- this line will put the array data in the message box (assuming there 
> > > is no other sub keys in each numeric array entry).
> > > put tMyArray[tKey] into tMyVar
> > >
> > > end repeat
> > >
> > > Ralph DiMola
> > > IT Director
> > > Evergreen Information Services
> > > rdim...@evergreeninfo.net
> > >
> > > -Original Message-
> > > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
> > > Behalf Of David Bovill via use-livecode
> > > Sent: Wednesday, September 02, 2020 10:55 AM
> > > To: How to use LiveCode
> > > Cc: David Bovill
> > > Subject: Looping though a numerically indexed array
> > >
> > > I’m pretty sure there must be a way to efficiently loop through 
> > > numerically indexed arrays
> > >
> > > Repeat for each key and repeat for each element does not seem to sort the 
> > > keys in numeric order,. Of course I can get the keys and sort them before 
> > > repeating - but is there a more efficient way?
> > > ___
> > > use-livecode mailing list
> > > use-livecode@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Possible : stack with transparent backgound?

2020-09-10 Thread Bob Sneidar via use-livecode
I believe you can add an alpha channel to mask the stack. I have never done it, 
but I heard it discussed a number of times. 

Bob S


> On Sep 10, 2020, at 2:41 PM, David Bovill via use-livecode 
>  wrote:
> 
> Id like to create a stack  - has to be a stack - and for the text and some 
> other elements to be visible but the stack background to be transparent - is 
> this possible with some combination of inks and masks and blend levels?
> On 2 Sep 2020, 22:03 +0100, Bob Sneidar via use-livecode 
> , wrote:
>> It appears I have that backwards?
>> 
>> Bob S
>> 
>> 
>>> On Sep 2, 2020, at 8:28 AM, Bob Sneidar  wrote:
>>> 
>>> Ditto, and I am not sure what noticeable impact one method would have over 
>>> another. There was some blurb a long time ago about how these keys are 
>>> internally sorted. I believe what was proposed is that a set of NUMERIC 
>>> keys beginning with 0 would actually sort correctly.
>>> 
>>> Bob S
>>> 
>>> 
 On Sep 2, 2020, at 8:24 AM, Ralph DiMola via use-livecode 
  wrote:
 
 David,
 
 Nope you have to sort them NUMERIC. As you said this is the only way I 
 know of. I do this all the time. I don't know of any other way.
 
 put the keys of tMyArray into tKeys
 sort lines of tKeys numeric
 repeat for each line tKey in tKeys
 
 -- do what you want with tMyArray[tKey]
 -- this line will put the array data in the message box (assuming there is 
 no other sub keys in each numeric array entry).
 put tMyArray[tKey] into tMyVar
 
 end repeat
 
 Ralph DiMola
 IT Director
 Evergreen Information Services
 rdim...@evergreeninfo.net
 
 -Original Message-
 From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
 Behalf Of David Bovill via use-livecode
 Sent: Wednesday, September 02, 2020 10:55 AM
 To: How to use LiveCode
 Cc: David Bovill
 Subject: Looping though a numerically indexed array
 
 I’m pretty sure there must be a way to efficiently loop through 
 numerically indexed arrays
 
 Repeat for each key and repeat for each element does not seem to sort the 
 keys in numeric order,. Of course I can get the keys and sort them before 
 repeating - but is there a more efficient way?
 ___
 use-livecode mailing list
 use-livecode@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Possible : stack with transparent backgound?

2020-09-10 Thread David Bovill via use-livecode
Yes. Not sure but I think this will nuke all the other layers - I’m hoping that 
an ink on an object can prevent this from being transparent as well. I don’t 
think that is possible/

Use case scrolling text over a live video.
On 10 Sep 2020, 23:13 +0100, Bob Sneidar via use-livecode 
, wrote:
> I believe you can add an alpha channel to mask the stack. I have never done 
> it, but I heard it discussed a number of times.
>
> Bob S
>
>
> > On Sep 10, 2020, at 2:41 PM, David Bovill via use-livecode 
> >  wrote:
> >
> > Id like to create a stack - has to be a stack - and for the text and some 
> > other elements to be visible but the stack background to be transparent - 
> > is this possible with some combination of inks and masks and blend levels?
> > On 2 Sep 2020, 22:03 +0100, Bob Sneidar via use-livecode 
> > , wrote:
> > > It appears I have that backwards?
> > >
> > > Bob S
> > >
> > >
> > > > On Sep 2, 2020, at 8:28 AM, Bob Sneidar  
> > > > wrote:
> > > >
> > > > Ditto, and I am not sure what noticeable impact one method would have 
> > > > over another. There was some blurb a long time ago about how these keys 
> > > > are internally sorted. I believe what was proposed is that a set of 
> > > > NUMERIC keys beginning with 0 would actually sort correctly.
> > > >
> > > > Bob S
> > > >
> > > >
> > > > > On Sep 2, 2020, at 8:24 AM, Ralph DiMola via use-livecode 
> > > > >  wrote:
> > > > >
> > > > > David,
> > > > >
> > > > > Nope you have to sort them NUMERIC. As you said this is the only way 
> > > > > I know of. I do this all the time. I don't know of any other way.
> > > > >
> > > > > put the keys of tMyArray into tKeys
> > > > > sort lines of tKeys numeric
> > > > > repeat for each line tKey in tKeys
> > > > >
> > > > > -- do what you want with tMyArray[tKey]
> > > > > -- this line will put the array data in the message box (assuming 
> > > > > there is no other sub keys in each numeric array entry).
> > > > > put tMyArray[tKey] into tMyVar
> > > > >
> > > > > end repeat
> > > > >
> > > > > Ralph DiMola
> > > > > IT Director
> > > > > Evergreen Information Services
> > > > > rdim...@evergreeninfo.net
> > > > >
> > > > > -Original Message-
> > > > > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
> > > > > Behalf Of David Bovill via use-livecode
> > > > > Sent: Wednesday, September 02, 2020 10:55 AM
> > > > > To: How to use LiveCode
> > > > > Cc: David Bovill
> > > > > Subject: Looping though a numerically indexed array
> > > > >
> > > > > I’m pretty sure there must be a way to efficiently loop through 
> > > > > numerically indexed arrays
> > > > >
> > > > > Repeat for each key and repeat for each element does not seem to sort 
> > > > > the keys in numeric order,. Of course I can get the keys and sort 
> > > > > them before repeating - but is there a more efficient way?
> > > > > ___
> > > > > use-livecode mailing list
> > > > > use-livecode@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@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Possible : stack with transparent backgound?

2020-09-11 Thread Jim Lambert via use-livecode
> DavidB wrote:
> 
>  the text and some other elements to be visible but the stack background to 
> be transparent 


Start with a card having a field and a button.
1. Create a GRC retangle the same rect as the card.

2. Set its opaque to false.

3. Set its linesize to 0.

4. Send it to back.

5. Group it with the field and a button.

6. Set the threeD of the Group to false.

7. Set both the borderwidth and margins of the group to 0.

8. Import snapshot from this card.

9. Hide last image.

10. Set the windowshape of this stack to the id of the last image.


This results in the field and button 'floating independently' over whatever 
else is on your screen. That is, the rest of the card is invisible.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Possible : stack with transparent backgound?

2020-09-11 Thread Marty Knapp via use-livecode
I was just tinkering with this and it wouldn’t work until I changed the “import 
snapshot" from card to “import snapshot” from the group. But that’s a very cool 
trick! Thanks Jim.

Marty

> On Sep 11, 2020, at 11:04 AM, Jim Lambert via use-livecode 
>  wrote:
> 
>> DavidB wrote:
>> 
>> the text and some other elements to be visible but the stack background to 
>> be transparent 
> 
> 
> Start with a card having a field and a button.
> 1. Create a GRC retangle the same rect as the card.
> 
> 2. Set its opaque to false.
> 
> 3. Set its linesize to 0.
> 
> 4. Send it to back.
> 
> 5. Group it with the field and a button.
> 
> 6. Set the threeD of the Group to false.
> 
> 7. Set both the borderwidth and margins of the group to 0.
> 
> 8. Import snapshot from this card.
> 
> 9. Hide last image.
> 
> 10. Set the windowshape of this stack to the id of the last image.
> 
> 
> This results in the field and button 'floating independently' over whatever 
> else is on your screen. That is, the rest of the card is invisible.
> ___


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Possible : stack with transparent backgound?

2020-09-11 Thread matthias rebbe via use-livecode
Thanks for the hint to import the snapshot from the group. I followed Jim's 
instructions w/o success and was a little disappointed.


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 12.09.2020 um 00:32 schrieb Marty Knapp via use-livecode 
> :
> 
> I was just tinkering with this and it wouldn’t work until I changed the 
> “import snapshot" from card to “import snapshot” from the group. But that’s a 
> very cool trick! Thanks Jim.
> 
> Marty
> 
>> On Sep 11, 2020, at 11:04 AM, Jim Lambert via use-livecode 
>>  wrote:
>> 
>>> DavidB wrote:
>>> 
>>> the text and some other elements to be visible but the stack background to 
>>> be transparent 
>> 
>> 
>> Start with a card having a field and a button.
>> 1. Create a GRC retangle the same rect as the card.
>> 
>> 2. Set its opaque to false.
>> 
>> 3. Set its linesize to 0.
>> 
>> 4. Send it to back.
>> 
>> 5. Group it with the field and a button.
>> 
>> 6. Set the threeD of the Group to false.
>> 
>> 7. Set both the borderwidth and margins of the group to 0.
>> 
>> 8. Import snapshot from this card.
>> 
>> 9. Hide last image.
>> 
>> 10. Set the windowshape of this stack to the id of the last image.
>> 
>> 
>> This results in the field and button 'floating independently' over whatever 
>> else is on your screen. That is, the rest of the card is invisible.
>> ___
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Possible : stack with transparent backgound?

2020-09-11 Thread Jim Lambert via use-livecode
Here's an example:
go stack url "https://netrin.on-rev.com/misc/TransparentStack.livecode";


JimL
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode