SketchUp / sketchup-ruby-debugger

Ruby API debugger for SketchUp 2014 and later.
MIT License
78 stars 34 forks source link

Help!getMenu(menu, flags, x, y, view) #29

Closed season-x closed 4 years ago

season-x commented 4 years ago

I want to create "new" context menu,so I use "getmenu".but I want it to coexist with "sketchup context menu".

-----------------------------------------------------------------------

def getMenu(menu, flags, x, y, view) menu.add_item('Move'){ UI.messagebox "Move_Tool" } menu.add_item('Scale'){ UI.messagebox "Scale_Tool" } end

-------------------------------------------------------

signe

----------------------------------------------------------

I also try to use "Win32API",but I failed.Anybody know?

thomthom commented 4 years ago

It's not possible to create additional menus like that. With Ruby tools you only get the default one, or your custom one (via getMenu.

Btw, for how to questions it's better to use the forums: https://forums.sketchup.com/c/developers/12

This repository is for the debugger tool itself.

If you have bug reports of feature requests for the APIs you can use the dedicated issue tracker: https://github.com/SketchUp/api-issue-tracker