Print Page | Close Window

Consistent smooth component shadow

Printed From: TMS Software
Category: General
Forum Name: Feature Requests
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=44
Printed Date: 19 Feb 2020 at 10:31am


Topic: Consistent smooth component shadow
Posted By: Finelli Fabio
Subject: Consistent smooth component shadow
Date Posted: 01 Jul 2010 at 4:53am
I'm using TAdvSmoothPanels a lot. Some of them have the Shadow enabled, but the shadow "intensity" is in inverse proportion of the "side" length that generates it.

So, a grey shadow of a 50x50 pixel button (or panel) is almost black, while a full black shadow of a 1280*1024 panel is almost invisible.

Shadows should have the same overall result no matter the size of the object that generates them.



Sorry for my poor English, i am Italian.



Replies:
Posted By: Pieter Scheldeman
Date Posted: 01 Jul 2010 at 5:48am
Dear Mr. Finelli, 

The shadow is drawn in GDI+ with some constant parameters, which result in inconsistency for shadows that are larger. Unfortunately this is not easy to implement and due to performance reasons we have decided to keep the current implementation.

Kind Regards, 
Scheldeman Pieter


Posted By: Finelli Fabio
Date Posted: 07 Jul 2010 at 5:13am
I understand the GDI behaviour.... sadly It becomes a bit more weird when you use "full rounded" side:
http://www.imagebam.com/image/525ddc87517319">
Here you can see how the separation between the bottom and the right shadow becomes really visible.

There is also "border" bug too; I don't know if i have to open a new thread for it or it suffice to signal it here.


Posted By: Pieter Scheldeman
Date Posted: 07 Jul 2010 at 5:58am
Thank you for your feedback, 

I have improved this and the fix will be availble in the next version.




Print Page | Close Window