Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Consistent smooth component shadow

 Post Reply Post Reply
Author
Finelli Fabio View Drop Down
Member
Member
Avatar

Joined: 01 Jul 2010
Posts: 51
Post Options Post Options   Quote Finelli Fabio Quote  Post ReplyReply Direct Link To This Post Topic: Consistent smooth component shadow
    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.
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3221
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Finelli Fabio View Drop Down
Member
Member
Avatar

Joined: 01 Jul 2010
Posts: 51
Post Options Post Options   Quote Finelli Fabio Quote  Post ReplyReply Direct Link To This Post 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:

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.
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3221
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down