Transparent Stack Background

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
WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Transparent Stack Background

Post by WaltBrown » Sat Sep 24, 2011 3:16 pm

Hi!

I've been searching in the Forums for this but the answers I found don't seem to apply.

I am making a substack with is a small palette to do pixel editing (like old MacPaint). The palette has three equal square areas on it - an image that is basically a blown up pixel (8x8 or 16x16 or whatever) map of a small area of an image where the editing action actually takes place, a tool area to select tool actions, and a transparent area that shows the underlying image that is in another substack.

The attached picture illustrates what I want to do. The right hand square in the little substack has a square that is transparent, that shows where the tool is currently operating. The only solution I have at the moment is to duplicate the entire picture in the substack, move it in concert with the user moving the substack around, then editing the bitmaps of both the original and the duplicate when I do pixel editing. I would much rather have that right hand square be transparent so the original image shows through.

Any ideas on how to make the substack background transparent? I have tried creating a pattern using an alpha mask PNG pattern, that just turned the stack background black. I would like to avoid using windowShape because then I have to make a whole fake stack window.

Thanks,
Attachments
Snapshot.PNG
Walt Brown
Omnis traductor traditor

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

Re: Transparent Stack Background

Post by Klaus » Sun Sep 25, 2011 12:26 pm

Hi Walt,

you cannot make a stack partly transparent ("masking" a stack) WITHOUT using "windowshape"!
The only thing you can do for the whole stack, which will "preserve" the title bar, is setting the stacks
"blendlevel", which will affect the complete stack however!


Best

Klaus

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

Re: Transparent Stack Background

Post by dunbarx » Sun Sep 25, 2011 6:28 pm

Walt.

Why does it have to be a stack? Wouldn't a group, say of an an image, a graphic or two and a palette, be conformable to what you want to present?

Craig Newman

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: Transparent Stack Background

Post by WaltBrown » Mon Sep 26, 2011 2:33 am

Thanks Klaus, I suspected that.

Craig, thanks. For some reason I got "substack" stuck in my mind - I wanted the basic image display and the bits tool to be separate "modules" as I have different projected other uses for each as well. I was about to go after windowShape, but now I think I'll try a group first instead, see how it works.
Walt Brown
Omnis traductor traditor

Post Reply