add textdisplay to slide

JACanterbury jacanterbury at gmail.com
Wed Dec 19 15:59:48 UTC 2012


Hi  David,

Thanks for the reply. The problem is that I want a generic bit of code that 
will read a couple of easily edited integer variables to determine how many 
text objects I need and to then work out how to position them (I want to 
create a grid of varying size and then capture which grid square the user 
clicks in) so I need a way to create slidetext objects at runtime and then 
to associate them with a particular slide.

Any more thoughts?

Many thanks,

John

On Wednesday, December 19, 2012 3:23:31 PM UTC, McFarlane, David wrote:
>
> Hmm, it just occurs to me, why not just add new text to existing 
> SlideText sub-objects instead of adding entirely new SlideText 
> sub-objects at run time?  Start by adding SlideText objects as 
> placeholders into your Slide, and into each one put an attribute 
> reference, e.g., [Text1], [Text2], ...  Define those attributes 
> before running your Slide, with empty text if you do not want any 
> text.  Then just assign new values to the attributes as needed, and 
> rerun or redraw the Slide to have the new text appear. 
>
> -- David McFarlane 
>
>
> At 12/19/2012 10:07 AM Wednesday, JACanterbury wrote: 
> >Hi Tobias, 
> > 
> >I'm looking to do the same thing (ie add new text objects to an 
> >existing slide at runtime) 
> > 
> >Did you work out how to do it? If so, could you post a code snippet 
> >to show how? 
> > 
> >many thanks, 
> > 
> >john 
> > 
> >On Thursday, 12 July 2012 14:45:56 UTC+1, Tobias wrote: 
> >Hi, 
> > 
> >I want to run a slide called "SearchSlide". 
> >Within a trial, I want to add a textdisplay. 
> > 
> >I tried: 
> > 
> >set SearchContext 
> >set textACC = New TextDisplay 
> > 
> >textACC.X = "50%" 
> >textACC.Y = "2%" 
> >textACC.Width = "34%" 
> >textACC.Height = "3%" 
> >textACC.FontSize = "16" 
> >textACC.FontName = "Arial" 
> >textACC.backcolor = "128,128,128" 
> >textACC.text = "correct" 
> > 
> >however the "set" command needs an "=". How can I refer to an 
> >already existing slide? 
> > 
> >Thanks, 
> >Tobias 
>
>

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/D1LWSwUyO-wJ.
For more options, visit https://groups.google.com/groups/opt_out.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20121219/26f85148/attachment.htm>


More information about the Eprime mailing list