Reply To: rating scale under images

PennController for IBEX Forums Support rating scale under images Reply To: rating scale under images

#9793
Jeremy
Keymaster

Hello,

You print an element below another one by calling print() on the latter after calling it on the former. You are actually already doing this to print your Image elements below your Text elements (although you then move the Image element inside a Canvas element that only contains it, which seems unnecessary):

PennController("univ.exist",
    newText("Κάθε κομμώτρια χτένισε κάποια γυναίκα.")  //// Set #2 , 2.7
    .center()
    .print()
    ,
    newImage("2.7.jpg")   
   .settings.size( 300 , 200 )
   .print()
    ,
    newCanvas("side-by-side", 450-200)
    .add( 0, 0, getImage("2.7.jpg"))
    .center()
    .print()
    ,
    newKey (" ")
    .wait()
    )

So all you need to do is print a Scale element after the Image element, like this:

newTrial("univ.exist",
    newText("Κάθε κομμώτρια χτένισε κάποια γυναίκα.")
      .center()
      .print()
    ,
    newImage("2.7.jpg")   
      .size( 300 , 200 )
      .center()
      .print()
    ,
    newScale("answer", 5)
      .log()
      .css({"max-width":280,width:280,color:"blue"})
      .button()
      .before( newText("(Διαφωνώ) ").italic() )
      .after( newText(" (Συμφωνώ)").italic() )
      .center()
      .print()
      .wait()
)

Jeremy