Recent

Author Topic: How to add MenuItem to Dock's PopUp  (Read 5562 times)

rajivsoft

  • New member
  • *
  • Posts: 48
How to add MenuItem to Dock's PopUp
« 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

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: How to add MenuItem to Dock's PopUp
« Reply #1 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

rajivsoft

  • New member
  • *
  • Posts: 48
Re: How to add MenuItem to Dock's PopUp
« Reply #2 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...

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: How to add MenuItem to Dock's PopUp
« Reply #3 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