Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Image in Row Header of LaneGrid (Read 1808 times)
Aziz ur Rahman
YaBB Newbies
*
Offline



Posts: 43
Joined: Feb 23rd, 2009
Image in Row Header of LaneGrid
Apr 15th, 2010 at 10:02am
Print Post  
Hi,
Is there any way to show an image in row header of LaneGrid. I was thinking to add a shapenode in the row header but it does not seems possible.

Is there any other solution?
  

Syed Aziz ur Rahman
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Image in Row Header of LaneGrid
Reply #1 - Apr 15th, 2010 at 11:14am
Print Post  
Try assigning a TextureBrush to the header's Style.
  
Back to top
 
IP Logged
 
Aziz ur Rahman
YaBB Newbies
*
Offline



Posts: 43
Joined: Feb 23rd, 2009
Re: Image in Row Header of LaneGrid
Reply #2 - Apr 15th, 2010 at 12:19pm
Print Post  
Thanks. it worked. Is there an easy way to resize the image to fit the header. TextureBrush.WrapMode does not help that much.

Do I have to get the Row Header Bounds somehow and resize the image myselfe before passing it to TextureBrush?

Any other method?
  

Syed Aziz ur Rahman
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Image in Row Header of LaneGrid
Reply #3 - Apr 18th, 2010 at 7:29am
Print Post  
You can resize a Bitmap image as shown here:
http://www.vb-helper.com/howto_net_image_resize.html

Another option to show an image over a header is to handle the diagram's DrawForeground event and call DrawImage(img, GetHeaderBounds(...)).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint