Organizing scripts in customui

Next
 From:  Barry-H
12127.1 
**Title: MoI V5 CustomUI — Positioning category submenus correctly**

Hi,

I'm using MoI 3D V5 with CustomUI and have created a `ScriptsFull.menu.htm` menu that groups custom scripts into categories based on filename prefixes, such as `CRV_`, `SRF_`, `SOL_`, `SEL_` and `UTL_`.

The main Full Scripts flyout opens correctly to the left of its button, which is on the bottom toolbar.

However, when I select a category such as Curves, its submenu opens at the bottom-right of the screen rather than being positioned correctly alongside the main menu.

I'm currently calling:

```js
moi.ui.showMenu(
"moi://appdata/customui/" + file,
moi.ui.commandBar.CommandBarCustomUI,
1,
0
);
```

I've also tried `0, 0` and `3, 0`. These haven't resolved the positioning issue.

The original `Scripts.menu.htm` works as expected. Is there a way to anchor the category submenu to the Full Scripts menu item itself, or otherwise control its horizontal and vertical position?

I'd appreciate any guidance on the correct `showMenu()` arguments or the appropriate UI element to use as the anchor.

Thanks!
  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
12127.2 In reply to 12127.1 
Hi Barry,

re:
> The main Full Scripts flyout opens correctly to the left of its button, which is on the bottom toolbar.

Can you please show a screenshot of what this looks like?


> However, when I select a category such as Curves, its submenu opens at the bottom-right of the
> screen rather than being positioned correctly alongside the main menu.

Also a screenshot of this too please.

Thanks, - 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:  Barry-H
12127.3 In reply to 12127.2 
Hi Michael,
the attached photo's show the issue.
The left hand script button opens the complete list of scripts as normal.
The right hand button opens new layout in a restricted width ok but when selecting a sub menu it opens it bottom right of screen.
However all the scripts that are not in the sub menu's that are not listed in dropdown there is an option to open them and they get displayed correctly.
Thanks
Barry
Ps: here are the htm's of the new fullscript and sub solid menu

EDITED: 13 Oct 2:22 by BARRY-H


Image Attachments:
Size: 170.6 KB, Downloaded: 16 times, Dimensions: 684x456px
Size: 99 KB, Downloaded: 15 times, Dimensions: 684x456px
Size: 100.4 KB, Downloaded: 10 times, Dimensions: 684x456px
Size: 473.7 KB, Downloaded: 8 times, Dimensions: 2736x1824px
  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:  Barry-H
12127.4 In reply to 12127.2 
Hi Michael,
Have found away to do it using a control panel.
Many thanks
Barry
  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