jimfoltz / SketchUp-Ruby-API-Doc

Help Document the SketchUp Ruby API using Yard
12 stars 5 forks source link

why does this function work for me? #26

Open ltc1996 opened 4 years ago

ltc1996 commented 4 years ago

https://github.com/jimfoltz/SketchUp-Ruby-API-Doc/blob/4356d2b6c5d2de7195b426dc66e5286378de2c5f/lib/webdialog.rb#L91

image

thomthom commented 4 years ago

Did you mean why it -doesn't- work?

The UI::WebDialog interface has been deprecated. It was very inconsistent in behaviour because it depended on IE on Windows and WebKit on Mac. And also on whatever version of the web engine was installed on the user machine. This method only had an effect on Mac, but I think in later versions of WebKit the capability was removed.

Unless you have to support SketchUp versions older than SU2017, use UI::HtmlDialog: http://ruby.sketchup.com/UI/HtmlDialog.html

Note that this repository haven't been updated for many years. It's better to refer to the official documentation: http://ruby.sketchup.com/UI/WebDialog.html

Also better to use the official SketchUp forums for questions about the Ruby API: https://forums.sketchup.com/c/developers

ltc1996 commented 4 years ago

Oops, i did mean does NOT work. Thanks for your reply.😄