odd shaped stacks

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

odd shaped stacks

Post by magice » Fri Mar 11, 2011 6:50 am

I would like to create an app that is not the standard rectangular window. I had hoped that I could simply use a background graphic with a transparent alpha channel, eliminate the title bar and border and that's all it would require. Unfortunately I have had no luck with this approach. Does anyone know of any tutorials or sample stacks where anything like this was done?

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

Re: odd shaped stacks

Post by Klaus » Fri Mar 11, 2011 11:39 am

Hi magice,

check "windowshape" in the dictionary!
You can use any GIF or PNG image with an alpha channel for this, just do:
...
set the windowshape of stack "xyz" to XXXX
## where XXXX is the ID of the image you want to use
...
A "preopenstack" script seems to be the best place for this line


Best

Klaus

mhoneywill
Posts: 66
Joined: Fri Feb 05, 2010 7:31 pm

Re: odd shaped stacks

Post by mhoneywill » Fri Mar 11, 2011 2:50 pm


magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: odd shaped stacks

Post by magice » Wed Mar 16, 2011 7:42 pm

Thank you very much, this is exactly what I needed. BTW I thought i had answered this with a thank you 4 days ago, but i guess my post didn't take.

Post Reply