[proFit-list] changing text in a text object programmatically

Chris Lee laserboy at fusemail.com
Fri Jun 13 06:42:18 CDT 2014


Actually, I think something very strange is happening.

If I change the shape name, the second option, pf.SetShapeProperties(name = ‘X’, text = some_string), worked once. If I change the name again, it doesn’t seem to work.

I also note that if I change the shape name, its position shifts…


On 13 Jun 2014 (W: 24), at 13:33, Chris Lee <laserboy at fusemail.com> wrote:

> Hi All,
> 
> I’m making a movie of a graph. I calculate my data, put it in a window, graph the results. It all works fine (and creates lovely movies). Now, I want to put the parameters that are varying over the course of the movie in the graph.
> 
> I created two text boxes, named “psi_ID” and “delta_ID” Since I know their names, I should be able to call them directly.
> 
> I use: 
> 
> psi_string = "Psi = " + `j` + "°"
> pf.SetShapeProperties(shape = "psi_ID", text = psi_string)
> 
> 
> This fails with the error that it cannot convert parameter to desired type. I think this refers to the first argument. If I change it to 
> 
> pf.SetShapeProperties(name = "psi_ID", text = psi_string)
> 
> This fails with the error “No such shape” (I have checked the shape name)
> 
> Can anyone see what I am doing wrong here?
> 
> Cheers
> Chris 
> _______________________________________________
> proFit-list mailing list
> proFit-list at quantum-soft.com
> http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://quantum-soft.com/pipermail/profit-list_quantum-soft.com/attachments/20140613/3389057e/attachment.html>


More information about the proFit-list mailing list