Defining the location of dialog box
David McFarlane
mcfarla9 at msu.edu
Tue Sep 27 14:43:46 UTC 2011
Gilis,
Um, read Michiel's answer again (and check the
E-Basic Help topics yourself). Note that he
referred to the InputBox$() function, *not*
AskBox$(). The two provide similar
functionality, except that InputBox$() positions
its response buttons vertically while AskBox$()
positions its response buttons horizonally, and
InputBox$() includes arguments for xpos & ypos whereas AskBox$() does not.
Furthermore, if you Google around for "vba
inputbox" and "vba askbox", you will find that
InputBox$() is a standard function of VBA (from
which E-Basic is derived), while AskBox$() is
not. So if you want to stick to well-known
standardized functions rather than ones peculiar
to E-Basic, you will use InputBox$() instead of AskBox$().
So give that another try. I just tried these out
myself and they worked as described.
-- David McFarlane, Professional Faultfinder
At 9/27/2011 05:10 AM Tuesday, you wrote:
>Thank you both, I've tried Michiel solution but regardless the values
>I used (from 20, 30 to 2000,5000) the ask box remained in the same
>position in the display. I would be happy to hear your advise on how
>to solve this issue.
>
>On Sep 26, 8:40 pm, David McFarlane <mcfar... at msu.edu> wrote:
> > Gilis,
> >
> > Michiel already answered the question as
> > posed. I would add that you could accomplish
> > much the same end by using an input mask with an
> > increased Max Count and adding an Echo Client,
> > which could provide a more seamless look, but
> > admittedly that does take rather more finesse than a simple InputBox.
> >
> > -- David McFarlane, Professional Faultfinder
> >
> > At 9/26/2011 09:57 AM Monday, Michiel Spape wrote:
> >
> >
> >
> >
> >
> >
> >
> > >Hi Gilis,
> > >Interesting question, but it seems like it's
> already answered in the helpfile:
> > >InputBox[$](prompt [, [title] [, [default]
> > >[,[xpos],[ypos] [,helpfile,context]]]])
> > >So:
> > >Dim a as string
> > >a = inputbox("what is a", "myTitle", "null", 2000, 5000)
> >
> > >...Will display an inputbox at x,y = 2000,5000.
> > >Careful, x/y is defined in twips. Twips?
> > >Twentieths of a point. Learn something new every day!
> > >Best,
> >
> > >Michiel Spapé
> > >Research Fellow
> > >Perception & Action group
> > >University of Nottingham
> > >School of Psychology
> > >www.cognitology.eu
> >
> > >-----Original Message-----
> > >From: e-prime at googlegroups.com
> > >[mailto:e-prime at googlegroups.com] On Behalf Of gilis
> > >Sent: 26 September 2011 14:44
> > >To: E-Prime
> > >Subject: Defining the location of dialog box
> >
> > >Dear all,
> >
> > >In my experiment people are asked to insert text through a dialog box
> > >(askbox)-the issue is that they have to enter the text while the image
> > >stimuli are still visible so it appear that the askbox always covert
> > >part of the stimulus that should be seen. My question is how can I
> > >define the location of the dialog box in the display.
> >
> > >Many thanks
> > >Gilis
--
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.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list