Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Get the image from the shape (Read 1803 times)
lindborg
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Sep 30th, 2008
Get the image from the shape
Oct 8th, 2008 at 8:55am
Print Post  
I know there is  class called ShapeToolBar. But that class doesn't quite look like I want.

I would like to create something like it but I can't get the images from the shapes.

Please point me in the right direction how to extract the shape images



  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Get the image from the shape
Reply #1 - Oct 8th, 2008 at 10:11am
Print Post  
Check how the listbox icons are created in the Flowcharter sample.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
lindborg
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Sep 30th, 2008
Re: Get the image from the shape
Reply #2 - Oct 8th, 2008 at 12:59pm
Print Post  
Thanks for the answer but it didn't help me out. I am using FlowChart.NET 5.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Get the image from the shape
Reply #3 - Oct 8th, 2008 at 1:36pm
Print Post  
Create a Bitmap for each shape you want in the toolbar, call Graphics.FromImage on it, draw the shape as shown in the Flowcharter's ListBox_DrawItem method, and add the bitmap to the toolbar's ImageList.

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