Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Add Background Image to Flow Chart (Read 5205 times)
tongyin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: May 26th, 2006
Add Background Image to Flow Chart
May 29th, 2006 at 7:01am
Print Post  
When I want to set the flow chart background image to "d:\myImg.gif", the codes below work in VB.Net.

Dim image1 As System.Drawing.Image
image1 = System.Drawing.Image.FromFile("d:\myImg.gif")
AxFlowChart1.Picture = image1

But when I try in foxpro, the codes below cause runtime error.

image1 = CREATEOBJECT("Image")
image1.Picture = "d:\myImg.gif"
Thisform.AxFlowChart1.Picture = image1

How to do it correctly in foxpro?  ???

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Add Background Image to Flow Chart
Reply #1 - May 29th, 2006 at 7:18am
Print Post  
Try with ths code:

Thisform.AxFlowChart1.LoadPicture("d:\myImg.gif")
  
Back to top
 
IP Logged
 
tongyin
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 8
Joined: May 26th, 2006
Re: Add Background Image to Flow Chart
Reply #2 - May 29th, 2006 at 8:48am
Print Post  
No runtime error come out when i use Thisform.AxFlowChart1.LoadPicture("d:\myImg.gif").

But the image does not come out. Do I need to initialize anything before running this code?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Add Background Image to Flow Chart
Reply #3 - May 29th, 2006 at 9:31am
Print Post  
Please check whether the image isn't centered or aligned  to the right or bottoms sides - it might not be visible in the currently visible part of the diagram. Also check whether the d:\myImg.gif file exists.

Stoyan
  
Back to top
 
IP Logged
 
Joanna
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 15th, 2006
Re: Add Background Image to Flow Chart
Reply #4 - May 29th, 2006 at 10:40pm
Print Post  
Hi,  Smiley

As for the .gif file, I have a question. Smiley

When I use a box item to load picture file from .gif file, the picture can be shown in the box, but won't like flash again. It just a static picture like .bmp or .jpg and so on.

Can I load .gif picture to make the flash effect? For example, load a .gif picture to show the moving of flows, and so on?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Add Background Image to Flow Chart
Reply #5 - May 30th, 2006 at 4:43am
Print Post  
Hi,

Animated GIFs are not supported. You can use a timer to create animations, or host the Media Player ActiveX control in a box to play an .AVI file.

Stoyan
  
Back to top
 
IP Logged
 
Joanna
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: May 15th, 2006
Re: Add Background Image to Flow Chart
Reply #6 - May 30th, 2006 at 6:28am
Print Post  
Ok, thank you! Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint