Howdy, Stranger!

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

Supported by

[solved] widget draw_frame

edited June 2013 in OpenSesame

Hello,

I understand that using draw_frame function when wanting to draw a frame to a widget is done by python code, is that true? If yes, my question is: how can I draw a frame on a widget using only opensesame script?
Besides the option of - frame="yes" - because this shows a grey frame which doesn't look so good, and does not match the word on the widget.
I need the frame to be only a rectangular shape surrounding the word on the widget.

this is the custom form I made:

set margins "150;100;50;100"
set rows "1;1;1;1;1;1"
set spacing "25"
set cols "1;1;1;1;1;1;1;1;1"
set description "A generic form plug-in"
widget 3 0 3 1 label center="yes" text="What shape did you see?"
widget 1 2 1 1 button text="[op1]" frame="true" var="response"
widget 3 2 1 1 button text="[op2]" frame="true" var="response"
widget 5 2 1 1 button text="[op3]" frame="true" var="response"
widget 7 2 1 1 button text="[op4]" frame="true" var="response"

Thank you,
Nagham

Comments

  • edited 9:40PM

    Hi Nagham,

    Forms support theming. Currently, there are only two themes available: 'plain' and 'gray'. The default is 'gray', and this theme indeed draws large gray frames. The 'plain' theme only draws an outline, which may be what you want. You can select the theme like so:

    set theme plain
    

    Btw, in your example you have frame="true", which should be frame="yes", as described here:

    Cheers!
    Sebastiaan

  • edited May 2013

    d

  • edited 9:40PM

    Hi,

    Thank you, the frame looks good now. There's a problem with the position of the word in it though, when it is a short word it is placed in the center, but when it is a long word it's lower. I tried to set center="yes" but it didn't help.
    Any thought on why this happens and how can I fix it?

    Thanks again,
    Nagham

  • edited 9:40PM

    Hi Nagham,

    If you have specified center="yes" the text should appear in the middle of the frame, regardless of how much text there is (although it will look ugly if the text doesn't fit). Could you post a screenshot + the script, so we can see what exactly goes wrong?

    Cheers,
    Sebastiaan

  • edited 9:40PM

    Hi,
    Is there an email address I can send it to?

    Thanks,
    Nagham

  • edited 9:40PM

    Hi Nagham,

    To upload your experiment you could do the following:

    • Open the "General properties" tab in OpenSesame, click "Script editor" and copy the whole script,
    • go to pastbin.com or gist.github.com, upload your script there (simply paste and submit)
    • and provide us with the resulting link in your forum post.

    Best,

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited 9:40PM

    It is fixed now thank you, I just had to enlarge the columns width apparantly

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