These are defined in Program Files\pebl\pebl-lib\Utility.pbl I think the
colors are hard-coded there. For example:
##Make an easy-to-use getsubnum function here.
define GetEasyInput(text,win)
{
if(not IsWindow(win))
{
SignalFatalError("GetEasyInput(win) needs a window to be specified,
not [" + win + "]")
}
bg <-
Rectangle(gVideoWidth/2,gVideoHeight/2,gVideoWidth,gVideoHeight,MakeColor("grey"),1)
AddObject(bg,win)
font <-
MakeFont("Caliban.ttf",0,22,MakeColor("black"),MakeColor("grey"),1)
query <- MakeLabel(text,font)
AddObject(query, win)
Move(query, gVideoWidth/2,80)
box <- EasyTextBox("",gVideoWidth/2-150,100, win,30,300,200)
Draw()
input <- GetInput(box,"<return>")
RemoveObject(query,win)
RemoveObject(box,win)
RemoveObject(bg,win)
return input
}
If you make a copy of the function into your own experiment file, it will
override the one in pebl-lib, so there is no real need to edit the one in
that location.
Best,
Shane
> Hi,
> I am using the builtin GetEasyChoice and GetEasyInput functions in my
> experiment, but I would need the background to be black and the text
> white (this is for consistency for the rest of the experiment, in
> which a dark background is a requirement). I was wondering whether
> there is a way of changing the background and foreground colors in
> these functions. If not, are they defined somewhere in PEBL code, so
> that I can copy them and change the colors in the code?
>
> Thanks!
>
> --
> Stefano Ghirlanda - www.intercult.su.se/~stefano - drghirlanda.com
> Full Professor of Psychology, Biology, and Anthropology, Brooklyn College
> Founder and Fellow, Stockholm University Centre for the Study of
> Cultural Evolution
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up
> now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Pebl-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pebl-list
>
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Pebl-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pebl-list