Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Drawing custom shadow (Read 1531 times)
bogdip
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 70
Joined: Sep 8th, 2008
Drawing custom shadow
Sep 3rd, 2009 at 12:29pm
Print Post  
Hi Stoyan,

Is it possible to draw a custom shadow?

I've custom drawn the tables (setting TableCustomDraw = CustomDraw.Full and adding a DrawNode event handler ), using a header image and a body image. If I add the shadow directly in the used images then they will be parts of the table bounds and the following drawbacks will occur:

1. cell bounds are "over" this shadow
2. the table selection markup will include this shadow which is not quite good looking.
3.the anchor points are drawn starting from the shadow and not from the table "real" margin.

Given this drawbacks, I would like to custom draw this shadow similar as the original one.

Could you give me some hints on how to do that?

Thanks,
Bogdan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Drawing custom shadow
Reply #1 - Sep 3rd, 2009 at 2:13pm
Print Post  
If you have set CustomDraw to Full, the control should raise the DrawNode event twice, once for the table content and once for its shadow. DrawNodeEventArgs has a bool Shadow property that let's you know what you should render.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
bogdip
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 70
Joined: Sep 8th, 2008
Re: Drawing custom shadow
Reply #2 - Sep 4th, 2009 at 8:23am
Print Post  

Thanks, I knew about the Shadow property, I only thought that maybe I should know some extra tips in order to custom paint the shadow. But it seems it was easier then I thought Smiley

Thanks again,
Bogdan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint