Forum > Carbon

How to add MenuItem to Dock's PopUp

(1/2) > >>

rajivsoft:
Hi all,
how can i add a custom menu item to dock's right click popup?
Thanks

Phil:
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

rajivsoft:

--- Quote from: 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


--- End quote ---
I'v tried to make a search for 'dock' and viewed all page results, but nothing...

Phil:
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

Sanem:

--- Quote from: 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

--- End quote ---


The apple doc link is not found, can you give me a new link or tell me what you know about this topic and how to implement it in Lazarus?

Again for clarification:  My quest is to find a way to add a menu item to the doc menu in a Lazarus application. regards

Navigation

[0] Message Index

[#] Next page

Go to full version