Stack property 'shadow' on a stack with no adorments on Windows?

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
stam
Posts: 2633
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Stack property 'shadow' on a stack with no adorments on Windows?

Post by stam » Mon Jul 26, 2021 11:37 am

Hi all,

i have a splash stack for an app with a white background.

On Mac, i have set this to hide all window controls, so it just shows as a (white) rect. The 'shadow' property of the stack is set to true and on Mac you get a border and a shadow around this box.

On windows, the same stack shows up as borderless with no shadow - and as it's white, it does not separate itself at all from the surrounding documents/windows, which invariable have a lot of white background and makes this look terrible.

The only work around I've found is to give the splash stack the minimum window controls, but this doesn't quite have the same visual effect.

Granted, this is a cosmetic issue, but wondered why 'shadow' does nothing in this context?

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm
Location: London, England

Re: Stack property 'shadow' on a stack with no adorments on Windows?

Post by Bernard » Mon Jul 26, 2021 11:54 pm

Try setting the shadow of the card to true and the 3d of the card to true. That might give you the effect you desire.

stam
Posts: 2633
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Stack property 'shadow' on a stack with no adorments on Windows?

Post by stam » Tue Jul 27, 2021 8:25 pm

Hi Bernard,
Thank you for the suggestions but that doesn't quite work...

There is no 'shadow' property on the card, only a border property
There is no 'border' property on the stack, but it does have the shadow property.

I cannot get the shadow of the stack to show, unless the titlebar is showing as well, which is not what i want.
I wanted to set the stack controls to empty but then i loose the shadow.

Having said that, i used a part of your suggestion and set the card border to show, without 3D (otherwise only the bottom/right border show). This was the most acceptable compromise.

To illustrate:
this is the ideal - if only i could get rid of the titlebar:
stack titlebar, no card borders.jpg
stack titlebar, no card borders.jpg (13.23 KiB) Viewed 2001 times

stam
Posts: 2633
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Stack property 'shadow' on a stack with no adorments on Windows?

Post by stam » Tue Jul 27, 2021 8:27 pm

without the title bar it looks like this - on a white background everything is lost except the text...:
no stack titlebar, no card borders.jpg
no stack titlebar, no card borders.jpg (10.13 KiB) Viewed 1999 times
without the title bar but showing the card borders (no 3D) - this is the most acceptable compromise, but no shadow:
no stack titlebar, card borders.jpg
no stack titlebar, card borders.jpg (11.26 KiB) Viewed 1999 times
but with both it looks silly:
stack titlebar, card borders.jpg
stack titlebar, card borders.jpg (17.39 KiB) Viewed 1999 times
So it seems the stack 'shadow' is linked to the presence of the titlebar?

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”