Help - Search - Members - Calendar
Full Version: menu-path-functions & standard-formatting-strings in 0.9 SDK
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
kdx
hi,

while porting a plugin to 0.9, i couldn't find some functionality from the 0.8er SDK in the new one, specifically the run_command and win32_run_menu_main functions, which execute or show a menu-entry with a given path, which could be expressed with a string - do these functions still exist somewhere ..?

also, what is the shortest way to test, if a (mainmenu-)item with a given GUID is currently checked ..?

and .. how do you get the default titleformatting-spec (or the corresponding compiled script) ?

well, i think that's it biggrin.gif
thanks in advance
foosion
QUOTE(kdx @ Aug 18 2006, 01:35) *
while porting a plugin to 0.9, i couldn't find some functionality from the 0.8er SDK in the new one, specifically the run_command and win32_run_menu_main functions, which execute or show a menu-entry with a given path, which could be expressed with a string - do these functions still exist somewhere ..?
The context menu support code is now in the menu_helpers namespace. A mainmenu_manager object allows you to instantiate a specified part of the main menu.

QUOTE(kdx @ Aug 18 2006, 01:35) *
also, what is the shortest way to test, if a (mainmenu-)item with a given GUID is currently checked ..?
You'll have to iterate through the existing components and check if they are available and checked.

QUOTE(kdx @ Aug 18 2006, 01:35) *
and .. how do you get the default titleformatting-spec (or the corresponding compiled script) ?
See the titleformat_config service; it has declarations for the GUIDs of the standard scripts.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.