Welcome!

Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

Changing the size of the rectangle around rating scale

CandiceCandice Posts: 24
edited April 24 in OpenSesame

Hi all!

I´m not a particularly tech savvy person, so this might be a silly question.

I´m making a form using inline script. I changed the size of the checkboxes on a rating scale to be bigger (by changing them on the \opensesame_resources\widgets\gray folder) but now the rectangle around them is too small. It seems to be exactly the same size as it was before I changed the checkboxes.

Is there any way for me to either (a) remove the rectangle around them or (b) make the rectangle bigger?

Thank you!

Comments

  • eduardeduard Posts: 963

    Hi Candice,

    Would you mind uploading your experiment? Then, I can play around with it a little myself.

    Thanks ,

    Eduard

    Thanked by 1Candice
  • CandiceCandice Posts: 24

    Hi Eduard,

    I uploaded a simplified version of the experiment. :)

    Thanks!
    Candice

  • eduardeduard Posts: 963

    Hi Candice,

    Sorry for the late replay. I tried your experiment, but I couldn't see anything weird. Your experiment looks really neat. All the boxes seem to be reasonably sized and properly rendered. What exactly would you want to have changed?
    At any case, in the folder libopensesame\widgets there is a file gray.py, in which you can define the width and of the frame, and the box, etc. I haven't tried it myself, but could this be what you're looking for?

    Thanks,

    Eduard

    Thanked by 1Candice
  • CandiceCandice Posts: 24

    Hi Eduard,

    I´m trying to make the checkboxes bigger so that they are easier to press on a touch screen. They probably look fine on yours because I changed my image in the \opensesame_resources\widgets\gray folder in an attempt to make them bigger. Changing those images makes the boxes look bigger but the area that is accepted as a response remains small and the rectangle around it looks off.
    I will tried looking at the gray.py file but I´m not sure what I should modify.

    Thanks!

  • eduardeduard Posts: 963

    Hi Candice,

    I don't know for sure, but I would try to manipulate some values in the frame function. For example, in the beginning of it, you could increase the width/height, of the frame by adding a constant factor, or you could try to hardcode them. I suggest, it makes most sense, to experiment a little, that is, changing things, see what influence it had, over and over again until you have a nice solution.

    Good luck,

    Eduard

    Thanked by 1Candice
Sign In or Register to comment.