BlendLevel is Resetting Upon Reopening Stack

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

BlendLevel is Resetting Upon Reopening Stack

Post by Gage » Tue Dec 15, 2015 10:38 am

Hello,

I have a number of groups with a graphic inside whose BlendLevel is 100 (the graphic is there to increase the clickable region without showing something, and it works great). However, whenever I open my stack afresh, the BlendLevel appears to be reset, as I have these big black (stack background color) blocks.

Short of writing PreOpenStack or PreOpenCard scripts that counteract this, I'm wondering if it's supposed to happen at all or if there is an elusive setting that can make my objects' BlendLevel settings permanent, even through opening and closing the stack. It would seem that BlendLevel would be like all other properties, which retain their set values... but this is repeatably not the case, evidently.

Any ideas? Similar experiences? Do I just have to work around it with script?

Thanks!
Phil E.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: BlendLevel is Resetting Upon Reopening Stack

Post by Klaus » Tue Dec 15, 2015 1:20 pm

Hi Phil,

you mean you set the belndlevel, save and close the stack and the next time
you open the stack the blendlevel has NOT been saved? :shock:


Best

Klaus

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: BlendLevel is Resetting Upon Reopening Stack

Post by Gage » Tue Dec 15, 2015 6:21 pm

Klaus,

Precisely. I used the slider bar in the Property Inspector to set the BlendLevel on my objects, not any script, but it should not matter.

Phil E.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: BlendLevel is Resetting Upon Reopening Stack

Post by dunbarx » Tue Dec 15, 2015 6:25 pm

Hi.

I do not see this in v6.7, OS 10.9. My blendLevels stick, as I would expect.

Craig Newman

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: BlendLevel is Resetting Upon Reopening Stack

Post by Gage » Tue Dec 15, 2015 6:26 pm

Hi Craig,

I should have specified... I am using LiveCode Indy Commercial v7.1 - it is the finalized version of its class (or however one would call it).

Seems, then, that this is a bug for 7.1 Indy.

Cheers,
Phil E.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: BlendLevel is Resetting Upon Reopening Stack

Post by Klaus » Tue Dec 15, 2015 6:30 pm

Hi Phil,

a bug? Don't think so!
Just made a quick test with LC Indy 7.1.1 RC3 and the set blendlevel does in fact stick!?


Best

Klaus

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: BlendLevel is Resetting Upon Reopening Stack

Post by Gage » Tue Dec 15, 2015 6:32 pm

Klaus,

Looks like we're using different versions, then. Yours looks to be newer.

I am not using an RC version. I'll ignore it as a 7.1 bug that has been fixed, and will either update or work around it.

Thanks for checking.

Cheers,
Phil E.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: BlendLevel is Resetting Upon Reopening Stack

Post by richmond62 » Tue Dec 15, 2015 7:06 pm

I just made a stack and imported an image and set the blendLevel to 50% with the properties palette slider.

Saved the stack.

Quit LiveCode 7.1.

Opened LiveCode 7.1.

reopened the stack.

The blendLevel was still 50%.

LiveCode 7.1 STABLE

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: BlendLevel is Resetting Upon Reopening Stack

Post by Gage » Tue Dec 15, 2015 7:35 pm

Richmond62,

Any luck with a rectangle generated by LiveCode in the version? I'm dragging and dropping an opaque, borderless rectangle. Also, the background color of my stack is black.

Cheers,
Phil E.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: BlendLevel is Resetting Upon Reopening Stack

Post by richmond62 » Wed Dec 16, 2015 6:02 pm

Possibly the most boring stack on the planet:
blending.png
blending.png (4.03 KiB) Viewed 9071 times
The stack has a card backGround which is black, and
a rectangular Graphic which is red and set with a blendLevel of 50%.

I saved it, quite LC, reopened it, AND the blendLevel was preserved.

Xubuntu 14.04 64-bit, LC 7.1 Stable.
Attachments
Blending.zip
Here's the stack to play with.
(339 Bytes) Downloaded 291 times
Last edited by richmond62 on Thu Dec 17, 2015 11:47 am, edited 1 time in total.

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: BlendLevel is Resetting Upon Reopening Stack

Post by Gage » Wed Dec 16, 2015 10:23 pm

Richmond62,

Indeed the most exciting app ever (haha)! Your stack worked on my LC, as well.

Thus, I'm stumped about why my stack is resetting the BlendLevel values for all of my objects that have a changed BL value. I would assume this is a protocol that happens behind the scenes, and I have not scripted any funky stuff in the PreOpen handlers, if that would do it.

Hmm... wonder what it could be. In any event, thank you for taking the time to try this out and for helping me!

Cheers,
Phil E.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: BlendLevel is Resetting Upon Reopening Stack

Post by jmburnod » Fri Mar 04, 2016 6:26 pm

Hi All,
I confirm that LC 7.06 (OS X 10.10.3 SOMETIMES doesn't work well with blendlevel and showname property for popup btn.
I said "sometimes" because it seem this bug need something else to do its job.
I will open a new thread for showname property

Best regards
Jean-Marc
https://alternatic.ch

Post Reply