madjeter
12-09-2008, 08:28 AM
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!
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!
