Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-09

Localization of carbon application menu

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Karl-Michael Schindler

Dear Lazaristi,

I want to localize the captions of the standard menuitems in my program created with lazarus, i.e. the items "Services", "Hide myApp", "Hide Others", "Show All" and "Quit myApp". The problem is that i cannot get hold of these items. I also tried to find out how this is done in Lazarus, but failed, too.

Maybe not related, but for the sake of completeness: What worked is to add extra items (i.e. an about and a preferences submenu) in the application menu including subsequent translation of the captions.

I also tried to get acces via NSApp.mainMenu, but that gives an acces violation because NSApp is zero. I expected that this is already allocated and set, but it does not to be the case. Any help how to get access to these submenus or hints how this is done in the Lazarus IDE?

Thanks in advance.

Michael Schindler
___________________________________________________________ Schon geh?rt? WEB.DE hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://produkte.web.de/go/toolbar

Reply by email