add textdisplay to slide
Anne-Wil
liwenna at gmail.com
Fri Jul 13 11:37:12 UTC 2012
Hi Tobias,
With respect to the code that you presented now: to me it seems to define a
textobject (= stand alone textbox), rather than a text-subobject to be
placed within a slide-object. In order to define a textbox within a slide,
I think that you need some code along the lines of:
CSlideText(Slide1.States(Slide1.ActiveState).Objects("Text1")) to replace
the textACC that you use now ->
CSlideText(SLIDENAME.States(SLIDENAME.ActiveState).Objects("TEXTBOXNAME")).X
= 50% etc.
However: although I could imagine that it might be doable using a do-while
construction, in my experience it is always way more easy to either use two
separate consecutive slideobjects that are identical except the feature
that you 'd like to change (i.e. the first without the textbox that is then
replaced by a separate slideobject wíth the textbox -> the effect would be
the same as having a textbox appear). Or, if you need more than a single
change to happen (or a conditional change that you don't want to organise
through slidestates on the second slide), you could opt for having a
slideobject being terminated, than in an inline have it's properties
changed and with a "goto label" construction go back on the procedure to
before the slideobject and have the slideobject shown AGAIN (i.e. also in
this case the slide is not technically altered while being shown, but
altered and then shown again).
I believe that 'an E-primer' (by Michiel Spape) contains some info on these
types of set-ups ( step.psy.cmu.edu/materials/*EPrimer*.pdf ) and there are
also examples around within this group, although perhaps not the exact same
thing as you search for (see for instance the fading slides thread:
https://groups.google.com/forum/?fromgroups#!topic/e-prime/rY2vTRap_4Q )
Best,
AW
On Thursday, 12 July 2012 16:07:32 UTC+2, Tobias wrote:
>
> To make this more clear: I want to add a slidetext on the already existing
> slide.
>
>
> Am Donnerstag, 12. Juli 2012 15:45:56 UTC+2 schrieb Tobias:
>>
>> 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 view this discussion on the web visit https://groups.google.com/d/msg/e-prime/-/PxiOtw83kOYJ.
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.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20120713/3b1c5314/attachment.htm>
More information about the Eprime
mailing list