• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Ui - messagebox definition

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 430 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    artmusicstudio
    last edited by 11 Jun 2014, 20:46

    hi,
    i cannot find anywhere a solution for making a simple
    ui-messagebox with more lines (like a small table)

    i have

    
    submenu.add_separator
    submenu.add_separator
    submenu.add_item("7 support / credits / info"){
    UI.messagebox "1.xxxxxxxxx"
     
    

    but showing

    1.xxxxxxxxx
    2.xxxxxxxxx
    3.xxxxxxxxx

    and a simpleok-button.

    is there a way? in the ruby api they speak about a multiline msgbox, but without showing asyntax.

    thanx a lot.
    stan

    1 Reply Last reply Reply Quote 0
    • J Offline
      Jim
      last edited by 11 Jun 2014, 20:49

      You can insert a newline using \n

      
      txt = "This is line one.\nThis is line two"
      UI.messagebox(txt)
      
      

      Hi

      1 Reply Last reply Reply Quote 0
      • A Offline
        artmusicstudio
        last edited by 11 Jun 2014, 21:01

        hi jim,
        thank you so much. it works. again a step closer to my ruby.
        stan

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement