Page 1 of 1

[Implemented] Advanced Menu-Functions

Posted: Thu Jun 26, 2003 5:05 pm
by GPI
The menu-librarys is a little bit unlogical and i miss some functions:

Code: Select all

DisableMenuItem(#menu,MenuItem, Status)
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)

Code: Select all

SetMenuText(#menu,#MenuItem,Text$)
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

Code: Select all

GetMenuText(#menu,#Menuitem)
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...