From: Anton Kapelyushnik (ANTON)
Hi guys.
Is there any method to get DOM tree of the ViewPanel? I mean get access to document object.
I want to create elements on top of viewport. Context menus. I know about createDialog, but it's not what i want.
From: Michael Gibson
Hi Anton, there is no DOM tree for the ViewPanel, it's not an HTML window. The ViewPanel and Viewports are implemented directly by MoI's own C++ code, not by WebKit.
In addition to createDialog there is also a method for moi.ui.showMenu() which shows a popup menu that will disappear when you click outside it but it's meant to be launched from a button.
- Michael
From: Anton Kapelyushnik (ANTON)
>>The ViewPanel and Viewports are implemented directly by MoI's own C++ code, not by WebKit.
Oh. I see. I thought it is implemented in HTMLCanvas.
>>In addition to createDialog there is also a method for moi.ui.showMenu() which shows a popup menu that will disappear when you click outside it but it's meant to be launched from a button
Quick look at some code that uses moi.ui.showMenu(). It's how debug popup and snaps popup work. I get it.
From what you've said i suppose this is different thing:
Just looks the same for style integrity. Right?
Thank you!
Image Attachments:
1.png
From: Michael Gibson
Hi Anton, the menu part of the one you show there is the same thing that's created by moi.ui.showMenu(), the arrow thing that you click on is a sprite drawn in the viewport drawing code though.
- Michael
From: Anton Kapelyushnik (ANTON)
Thank you, Michael.
No luck for me. There are too many scripts. And using hotkeys for everything is hard. I keep forgetting them.
So i thought to implement some context menus for groups of commands.
Ok, i have another idea.
From: Michael Gibson
Hi Anton, have you tried Max's CustomUI extension? :
http://moi3d.com/forum/index.php?webtag=MOI&msg=6507.1
It adds a scripts button to the bottom command bar that pops up a menu with scripts on it.
- Michael