
Along with removing borders it adds a layered style, which allows it to be made transparent. Style = 0x94000000 # WS_POPUP | WS_VISIBLE | -20, -16, 0, 0, 0, 0, 0, 0x0267)īasically, what it does is creates a webdialog, finds its handle, and removes its borders.

Style_ex = 0x00010000 | layered # WS_EX_CONTROLPARENT | WS_EX_LAYERED RUBY_PLATFORM =~ /mswin|mingw/i ? : Find dialog = Remove dialog caption and borders Ying2014, here is a code snippet which allows you to remove borders from the dialog:Ĭode: Select all # Create a web = false, 'MyDialog', width, height, ix, iy, true) To uninstall, navigate to plugins folder and delete ams_Lib folder and ams_Lib.rb file. To install manually, download the RBZ file and use the native Sketchup Extension Manager to install Microsoft Windows XP, Vista, 7, 8, 10 32/64 bitĪMS Library is available at SketchUcation ExtensionStoreĪMS Library can be installed through SketchUcation ExtensionStore, provided that SketchUcation Tools are installed.Usage documentation can be found at RubyDoc Currently, AMS Library is used by MSPhysics extension.

In a way, AMS Library provides developers with functionality not achievable with SketchUp Ruby API.ĪMS Library is intended to be used as a dependency extension by other extensions.

Furthermore, AMS Library comes with various geometry and entity hierarchy manipulation functions. In addition to the observer and modifier procedures, AMS Library provides Windows API functionality for tweaking dialogs to a next level, including removing the surrounding window frame and applying window transparency.

This allows for operating extensions while other extensions are operating. AMS Library's callback events are registered in form of observers (although they are also modifiers), meaning a tool does not necessarily have to be an active tool in order to receive input events. In addition to utilizing Sketchup::Tool events, a developer can utilize AMS Library's keyboard and mouse callback functions to receive input of all the messages, including the mouse wheel. Such features provide extension developers with additional control over their tool. Features include switching SketchUp fullscreen, monitoring window state changes, monitoring keyboard and mouse events, and preventing the interference of SketchUp keyboard and mouse shortcut accelerators. AMS Library is a helper extension that provides functions and utilities for interacting with SketchUp window and its input procedures, via the Microsoft Windows API.
