Millisecond Forums

Background color

https://forums.millisecond.com/Topic10497.aspx

By Corinne - 5/20/2013

Hi all,


I am using the "include"-command to merge the three blocks of my survey (as attached). I defined the background color as white in the first and the third block and in the second block as black. This works fine if I run the blocks one by one but in the inculded-file all backgrounds appear black. Also the size of the writing changes. What do I have to change in order for inquisit to use the background color and writing size I defined for each block individually.


Thank you for your help.


~Corinne


By Dave - 5/20/2013

 I defined the background color as white in the first and the third block and in the second block as black.


No, you did not and that's the problem.


- Your first file as well as the third do not contain any /screencolor definition.


- The <defaults> element in your second file sets /screencolor to black.


As a consequence, the screencolor defined in <defaults> will apply to all elements.



By Corinne - 5/20/2013

Dear Dave


Thank you for your fast reply.


I corrected my error and defined the background color for the first and the third block as white with the default-option. When I run all files now I get the error message "default is defined more than once". How do I avoid that?


Thank you in advance for your help.


~Corinne


By Dave - 5/20/2013

Corinne,


doing <include> is equivalent to having all contents in a single file. Naturally, you can only have one <defaults> element. If there were multiple, how would Inquisit know which one to apply to what?


How do I avoid that?


As detailed in the documentation, /screencolor is available for <block> and <survey>. Simply define the color you want for the respective element. If you don't, Inquisit will use whatever you put in <defaults>.

By Corinne - 5/26/2013

Thank you Dave, it works now.


~Corinne