[futurebasic] Re: [FB] FN MakeHeirMenu

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2010 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Thu, 21 Jan 2010 21:03:38 -0500
Brian, go back to Oct 22,23 2009 in the archives, same topic I believe.

Jordy Covy
ST: TNG Pakled Research Corp.

It's different for a resource menu.
Example:
Menu _ImageMenu , _resMenu, _Enable
Menu _ChannelsSubMenu,_resSubMenu, _enable

Build on the fly:

local mode
local fn InstallNoResHierMenu ( parentMenu, parentItem, childMenu )

long if fn SetMenuItemHierarchicalID( fn GetMenuHandle(parentMenu),  
parentItem, childMenu ) = _noErr
INSERTMENU(FN NEWMENU(childMenu,""), -1)
end if

end fn

Example..

fn InstallNoResHierMenu ( _FileMenu,_fOpenRecentItem,  _OpenRecentMenu )


Then populate with usual menu statement, using your _OpenRecentMenu  
menu ID equivalent


(your id)

rc