Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] Can't change background color in form_text_input

edited May 2013 in OpenSesame

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

  • edited 11:48PM

    I want to have in each form different background color.

    You may want to take a look at this discussion:

    PS: Definetly one of the best and helpful software for making experiments. Thank you for this.

    Thanks, and you're welcome!

    Cheers,
    Sebastiaan

  • edited June 2013

    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...

  • edited 11:48PM

    Indeed, with the psycho back-end, forms ignore the background variable (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 the background variable) in the run phase of an inline_script item just before the form. Like so:

    win.setColor('red') # Set window color
    win.flip() # Update window
    

    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

  • 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

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games