[Implemented] Advanced Menu-Functions
Posted: Thu Jun 26, 2003 5:05 pm
The menu-librarys is a little bit unlogical and i miss some functions:
Please add the #menu. GetMenuItemState() also have the #menu. And sometimes i use for the popup and the window-menu the same menuitem-nr (because they do exact the same), but then i can't use the DisableMenuItem. I must use
EnableMenuItem_(SciEdiMenu,#menu_main_SaveBlock,#MF_BYCOMMAND|Flag)
At the moment i use this:
menuHandle=getmenu_(win)
ModifyMenu_(menuHandle,nr,#MF_STRING,nr,text$)
It would be usefull for recent-files. All examples that i know recreate the complete menu.
Analog to this
GetMenuString or for newer systems: GetMenuItemInfo should do this.
Also it would nice to enable/disable/rename MenuTitle and SubMenus, but then they need numbers...
Code: Select all
DisableMenuItem(#menu,MenuItem, Status)
EnableMenuItem_(SciEdiMenu,#menu_main_SaveBlock,#MF_BYCOMMAND|Flag)
Code: Select all
SetMenuText(#menu,#MenuItem,Text$)
menuHandle=getmenu_(win)
ModifyMenu_(menuHandle,nr,#MF_STRING,nr,text$)
It would be usefull for recent-files. All examples that i know recreate the complete menu.
Analog to this
Code: Select all
GetMenuText(#menu,#Menuitem)
Also it would nice to enable/disable/rename MenuTitle and SubMenus, but then they need numbers...