Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
129 user(s) are online (108 user(s) are browsing Forums)

Members: 1
Guests: 128

hotrod, more...

Support us!

Headlines

 
  Register To Post  

(Solved) Dock app icon menu (right click) ?
Just can't stay away
Just can't stay away


See User information
How can I add menu items to dock icon menu ? (Right click on an app icon on AmiDock.) I want to add "Open prefs" handling to my app.


Edited by TSK on 2009/1/2 14:07:01
Rock lobster bit me - so I'm here forever
X1000 + AmigaOS 4.1 FE
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
Go to top
Re: Dock app icon menu (right click) ?
Just popping in
Just popping in


See User information
@TSK

For a standalone docky, add this in DockyGet() method, tag DOCKYGET_ContextMenu:

Quote:

Object *item1 = PopupMenuItemObject,
PMIA_Title, "Open Prefs...",
PMIA_ID, PMID_PREFS,
PopupMenuItemEnd;

IIntuition->IDoMethod((Object *)msgData, OM_ADDMEMBER, item1, TAG_DONE);


For an app docky, AFAIK the option is added automatically with the appropriate tag in RegisterApplication() and you have to handle the corresponding applib message.

Go to top
Re: Dock app icon menu (right click) ?
Just can't stay away
Just can't stay away


See User information
@centaurz

Thanks. I found the right register tag. It's REGAPP_HasPrefsWindow.

Rock lobster bit me - so I'm here forever
X1000 + AmigaOS 4.1 FE
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project