Lazarus

Programming => Widgetset => Carbon => Topic started by: rajivsoft on February 10, 2011, 12:20:20 pm

Title: How to add MenuItem to Dock's PopUp
Post by: rajivsoft on February 10, 2011, 12:20:20 pm
Hi all,
how can i add a custom menu item to dock's right click popup?
Thanks
Title: Re: How to add MenuItem to Dock's PopUp
Post by: Phil on February 10, 2011, 06:35:08 pm
Good question. I think that's been asked before but I can't recall the answer. Maybe you could search the forum and see if you can find a post related to the app's popup menu on the Dock.

Thanks.

-Phil
Title: Re: How to add MenuItem to Dock's PopUp
Post by: rajivsoft on February 15, 2011, 10:49:24 am
Good question. I think that's been asked before but I can't recall the answer. Maybe you could search the forum and see if you can find a post related to the app's popup menu on the Dock.

Thanks.

-Phil

I'v tried to make a search for 'dock' and viewed all page results, but nothing...
Title: Re: How to add MenuItem to Dock's PopUp
Post by: Phil on February 15, 2011, 04:58:08 pm
Here's Apple's docs:

http://developer.apple.com/library/mac/#documentation/Carbon/Conceptual/customizing_docktile/tasks/docktasks.html

I believe the functions mentioned like SetApplicationDockTileMenu are all in MacOSAll unit.

You might look at this for ideas on how to integrate your code with LCL since this does something similar with the menu bar "extras":

http://wiki.lazarus.freepascal.org/TrayIcon

Thanks.

-Phil
TinyPortal © 2005-2018