Page 1 of 1

How to internationalize the DockyContextMenu?

Posted: Mon Jan 15, 2024 12:47 pm
by mrupp
Hi there

Is there a way to internationalize the OS4 DockyContextMenu?
So far, I create the DockyContextMenu like this:

Code: Select all

@MENU 1, {
    { "Docky", {
			{ "Play/Pause", ID = "dockmenPlayPause" },
			{ "Previous", ID = "dockmenPrevious" },
			{ "Next", ID = "dockmenNext" } }
		}
  }
@OPTIONS { RegisterApplication = True, DockyContextMenu = 1 }
Beacause the menu is created with @MENU, GetCatalogString() can't be used, but then, I couldn't find a way to rename menuitems at a later stage and I can't use CreateMenu() to create the DockyContextMenu, either, because its ID is needed in @OPTIONS.

I'm I missing something or is this simply not possible?

Cheers,
Michael

Re: How to internationalize the DockyContextMenu?

Posted: Sat Jan 20, 2024 11:15 pm
by airsoftsoftwair
Yes, this looks like a design flaw. I don't think it's possible to use anything but string constants for the docky context menu. I'll add that feature to my to do list.

Re: How to internationalize the DockyContextMenu?

Posted: Sun Jan 21, 2024 12:29 pm
by mrupp
airsoftsoftwair wrote: Sat Jan 20, 2024 11:15 pm Yes, this looks like a design flaw. I don't think it's possible to use anything but string constants for the docky context menu. I'll add that feature to my to do list.
Thanks!

Re: How to internationalize the DockyContextMenu?

Posted: Sun May 18, 2025 5:55 pm
by airsoftsoftwair

Code: Select all

- New [Windows/OS4]: Added SetTrayMenu() function; this function allows you to add a popup menu to your
  app's tray icon (or docky icon on AmigaOS 4); pass the special constant #NONE to remove the popup menu