DOM tree of the ViewPanel

Next
 From:  Anton Kapelyushnik (ANTON)
8842.1 
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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8842.2 In reply to 8842.1 
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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Anton Kapelyushnik (ANTON)
8842.3 In reply to 8842.2 
>>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!
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8842.4 In reply to 8842.3 
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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Anton Kapelyushnik (ANTON)
8842.5 In reply to 8842.4 
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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
8842.6 In reply to 8842.5 
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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All