• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

SDK: How to display the top-level menu in Keyboard Shortcuts?

Contributor ,
Apr 19, 2024 Apr 19, 2024

Copy link to clipboard

Copied

 

Hello everyone,
I'm using the following code:

ASErr AIalignPlugin::AddMenus(SPInterfaceMessage* message)
{
	ASErr error = kNoErr;

	SDKAboutPluginsHelper aboutPluginsHelper;
	aboutPluginsHelper.AddAboutPluginsMenuItem(message,
		kSDKDefAboutSDKCompanyPluginsGroupName,
		ai::UnicodeString(kSDKDefAboutSDKCompanyPluginsGroupNameString),
		"AIalign...",
		&this->fAboutPluginMenu);

	AIMenuItemHandle dummyItem;

	AIPlatformAddMenuItemDataUS menuData;
	menuData.groupName = kOtherPalettesMenuGroup; 
	menuData.itemText = ai::UnicodeString("AIalign"); 
	error = sAIMenu->AddMenuItem(message->d.self,
		nullptr,
		&menuData,
		kMenuItemWantsUpdateOption,
		&this->fShowAiAlignMasterDialog); 
	if (error) goto error; 

error: 
	return error;
}

I successfully added the AIalign menu item as a top-level menu item under the window menu, but this menu cannot be found in the Keyboard Shortcuts. If set as a submenu, it can be found. So, I kindly ask for everyone's help and guidance on this matter. Thank you all.
AIalign.jpgAIalign-Shortcuts.jpg

TOPICS
SDK

Views

105

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Apr 19, 2024 Apr 19, 2024

Through careful examination, the BUG has been resolved.

Just need to modify nullptr to "AIalign".

Thank you, everyone.

Votes

Translate

Translate
Adobe
Contributor ,
Apr 19, 2024 Apr 19, 2024

Copy link to clipboard

Copied

LATEST

Through careful examination, the BUG has been resolved.

Just need to modify nullptr to "AIalign".

Thank you, everyone.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines