[open] Can't change background color in form_text_input
Hi there again,
I want to make some forms with some performance tasks. Also I want to have in each form different background color.
I use Opensesame script in form_text_input, and I already managed to make that forms with some tasks. But the problem is that I don't know what opensesame script to use to change colors of background and of the letters.
What can I use to set a color for background and a different color for text?
Thank you.
PS: Definetly one of the best and helpful software for making experiments. Thank you for this.
Comments
You may want to take a look at this discussion:
Thanks, and you're welcome!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi again,
Thanks for answer.
I created that inline script, copy/pasted there what you recommend in that another topic, and font color changed to yellow. But, background color stay the same...
Tried also without changing foreground, but same, background stay the same...
(used back-end is psycho).
Mmmm... where is my mistake?
Later:
I found that I can present stimuli as text_display, and in general script editor I can change background/foreground, and it's applied to experiment, but how about forms?
I also found that in general script editor that in forms I have
"set cols "1;1;1"
set form_title "Title"
set background "blue"
set ok_text "Ok""
but despite the fact that I change background to blue, it is further black...
strange...
Indeed, with the psycho back-end, forms ignore the
backgroundvariable (issue #183). Basically, the background stays the way it was before. The workaround would be to change the background color (the actual color on the screen, not thebackgroundvariable) in the run phase of aninline_scriptitem just before the form. Like so:The only thing that this script will do is turn the window into a uniform red, which will automatically be the background color for the form that follows. Note that this is a psycho-specific hack!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
I have a similar question.
More specifically, it is about the TextInput field, e.g. TextInput(stub=u'X', var=u'X1', key_filter=filter_alphabet)
I have set my background color to #eeece1 which is light sepia because participants always complain about the background being so white in the experiments.
Now i do not see the checkbox anymore. I mean the one where the text has to be filled in. You see the examplary 'put text here...' but not the field.
Is it possible to change the color of this specific field? Or the frame color of this field? (Without changing the whole background)
Stephan
Hi @DahmSF ,
I'm guessing you're using the expyriment back-end, right? There is an issue with some versions of expyriment that sometimes causes thin lines to be invisible. Could that be it? If you switch to another back-end, the outline should become fully visible again.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!