Howdy, Stranger!

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

Supported by

[solved] formatting sektchpad textline (margins, alignment etc.)

edited November 2014 in OpenSesame

Hi Guys!

I recently experienced a problem with textlines in sketchpad items. Maybe that's due to lacking knowledge on my side. So i hope you'll be able to help me out again. :D

I would like to use minimal formatting for textline elements within sketchpad items: I would like to set a minimal margin on the left and right side when displaying centered textlines (before the automatic linebreak). My attempts using html commands failed, but i'm sure that this is possible, isn't it?

Thanks in advance & best regards

timo

Comments

  • edited 9:09PM

    Hi Timo,

    So you want to draw text, but avoid the text from running all the way to the edge of the screen, is that right? I'm afraid that's not really possible. OpenSesame will wrap to avoid crossing the screen boundaries, but that's it. You cannot set a custom size or a margin for a textline element in a sketchpad.

    What you could do, though, is fool OpenSesame by specifying a resolution that is smaller than your actual display resolution. If use the xpyriment or psycho back-ends, this will have the effect of creating a virtual window in the center of the screen. And OpenSesame will respect the boundaries of this virtual window, thus giving you a margin of sorts.

    See also here:

    Cheers,
    Sebastiaan

  • edited November 2014

    That's a great workaround!

    Thanks for your quick and helpful response, Sebastiaan.

  • I'm trying this workaround, but I'm not getting the text wrapping at the edge of the screen. I have the resolution set to 1024 x 768 in OpenSesame and I'm using the xpyriment back-end. My monitor is 1920 x 1080. I'm displaying survey items in a text box on a sketchpad. The sketchpad is in a sequence in a loop, and the survey items are listed in a column in the loop. When the items display, they run past the edge of the resolution defined in OpenSesame and in a few cases (long items), they run past the edge of the actual monitor and some of the words aren't displayed.

    I would greatly appreciate any advice you have!

    Best,

    Tom

Sign In or Register to comment.