SketchUp / htmldialog-inputbox

UI::HtmlDialog example recreating UI.inputbox functionality in the SketchUp Ruby API
MIT License
6 stars 5 forks source link

small request: messageBox #18

Open mariocha opened 3 years ago

mariocha commented 3 years ago

I can use these nice HTML_inputs simply by mixin. Would like a messagebox also included. Did try to get messagebox done, no success Aling Ends HTML_ui .

thomthom commented 3 years ago

What wasn't successful with your messagebox attempt?

What did you want that messagebox to do that UI.messagebox wasn't doing?

mariocha commented 3 years ago

Hi Thom Here is an image of what I would like: goal This is what my attempt yields: attempt

Code I tried 1- In extension: options = { title: 'Aling Ends', accept_button: 'Ok', inputs: [ HtmlUI::Message.new(LH['Pre-Select Edges!']) ] } dialog = HtmlUI::MessageBox.new(options) dialog.prompt

Files I added: html_ui_message.rb, message.rb in input folder, html in html folder.

best regards Mario

Le 29 nov. 2021 à 05:07, Thomas Thomassen @.***> a écrit :

What wasn't successful with your messagebox attempt?

What did you want that messagebox to do that UI.messagebox wasn't doing?

— You are receiving this because you authored the thread. goal Reply to this email directly, view it on GitHub https://github.com/SketchUp/htmldialog-inputbox/issues/18#issuecomment-981477810, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWBRHIARKVAUVFMBDWI7MLUONGGHANCNFSM5I6DNH6A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

thomthom commented 3 years ago

The image is missing and the code came in oddly formatted.. Can you edit your post on GitHub please?