How to create menu list as part of MainMenu

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  12 December 2008
Question How to create menu list as part of MainMenu

Dear forum:

I found Max is very good at creating a menu system for a dialog. But, I found out that it is really difficult to create a menu as one of the main menu.
Here is my codes:
fn ShowMyMenu =
(
rcMenu MyMenus
(
subMenu "MyMenu"
(
menuItem openIniMi "Open"
seperator file01
menuItem closeMi "Close"
)

on openIniMi picked do
(
format "file->open\n"
)

on closeMi picked do
(
format "file->close\n"
)
)
)

I can easily make it as the menu of a dialog, using:
createDialog myRollout menu:(ShowMyMenu())

But I do not found out a way to put my menu, 'rcMenu MyMenus', as one of the main menu, just like Max's 'File', 'Help' etc.

Does anyone know how to implement what I expected?
Thanks a lot!
 
  12 December 2008
take a look at http://andklv2.narod.ru/maxscripts/...rtMenu_v.0.1.ms

should clear it up.

something like

subMenuItem = menuMan.createSubMenuItem "Test Menu" subMenu
subMenuIndex = mainMenuBar.numItems() - 1
mainMenuBar.addItem subMenuItem subMenuIndex
menuMan.updateMenuBar()
__________________
Dave Buchhofer.
 
  12 December 2008
Thumbs up

Really thanks. It works. That is wonderful.
 
  12 December 2008
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:09 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.