sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    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.
    • artmusicstudioA Offline
      artmusicstudio
      last edited by

      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

        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
        • artmusicstudioA Offline
          artmusicstudio
          last edited by

          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
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement