Allready have the AppDock (using application_lib & RegisterApplication() ... ) icon (with only one default option 'Quit') and want to add a couple more of options to an AppDocky like on AmiUpdate.
Is there an "easy" way for such thing? Or do I have to add/link a Dummy_Docky.c (like TestApp.c app_lib example).
TIA
Add options to AppDock context menu
- javierdlr
- Beta Tester
- Posts: 389
- Joined: Sun Jun 19, 2011 11:13 pm
- Location: Donostia (GUIPUZCOA) - Spain
- Contact:
Re: Add options to AppDock context menu
Ok did some tests, but I don't know where
<code>
..Object *item1 = PopupMenuItemObject, ..
</code>
'PopupMenuItemObject' comes from, can someone enlight me?
Is there a way to add items to AppDock's contextmenu (not a Docky)? :-/
TIA
<code>
..Object *item1 = PopupMenuItemObject, ..
</code>
'PopupMenuItemObject' comes from, can someone enlight me?
Is there a way to add items to AppDock's contextmenu (not a Docky)? :-/
TIA
Re: Add options to AppDock context menu
PopupMenuObject is probably from popupmenu.class.javierdlr wrote:Ok did some tests, but I don't know where
<code>
..Object *item1 = PopupMenuItemObject, ..
</code>
'PopupMenuItemObject' comes from, can someone enlight me?
Is there a way to add items to AppDock's contextmenu (not a Docky)? :-/
If you figure out how to do this please can you enlighten the world, as I'd like to know too!
- javierdlr
- Beta Tester
- Posts: 389
- Joined: Sun Jun 19, 2011 11:13 pm
- Location: Donostia (GUIPUZCOA) - Spain
- Contact:
Re: Add options to AppDock context menu
Now I can add items to contextmenu of the DOCKY/APPDOCKY (not the APPLICATION dock/icon):chris wrote:PopupMenuObject is probably from popupmenu.class.javierdlr wrote:Ok did some tests, but I don't know where
<code>
..Object *item1 = PopupMenuItemObject, ..
</code>
'PopupMenuItemObject' comes from, can someone enlight me?
Is there a way to add items to AppDock's contextmenu (not a Docky)? :-/
If you figure out how to do this please can you enlighten the world, as I'd like to know too!
http://www.os4coding.net/forum/add-opti ... mment-1645
- javierdlr
- Beta Tester
- Posts: 389
- Joined: Sun Jun 19, 2011 11:13 pm
- Location: Donostia (GUIPUZCOA) - Spain
- Contact:
Re: Add options to AppDock context menu
Hi. Now I have contextmenu with some items 
But how to "interconnect" the DOCKY (seems it's a separated task/process) with my main (mixer) program/task/process?
Via Messages and Ports? (http://wiki.amigaos.net/index.php/Exec_ ... _and_Ports)
Does amidock/docky has some in-built function for such purpose?
My main problem now, from the AppDocky it works for rising/lowering/muting volume without problem, but to UNICONIFY mixer, it tries to create a new mixer instace, instead of uniconifying the already existing. Or maybe is some bad/missing code inside mixer? (I think this is the culprit)

But how to "interconnect" the DOCKY (seems it's a separated task/process) with my main (mixer) program/task/process?
Via Messages and Ports? (http://wiki.amigaos.net/index.php/Exec_ ... _and_Ports)
Does amidock/docky has some in-built function for such purpose?
My main problem now, from the AppDocky it works for rising/lowering/muting volume without problem, but to UNICONIFY mixer, it tries to create a new mixer instace, instead of uniconifying the already existing. Or maybe is some bad/missing code inside mixer? (I think this is the culprit)
Re: Add options to AppDock context menu
@javierdlr
- Before the program goes into the main event loop, obtain the signal bit for this port:
- Add the signal bit to Mixer's signal mask:
- In the docky, FindPort() the named public port created by Mixer. Send whatever you want to send it as part of the message structure.
- In Mixer, when a message arrives at the named port, copy whatever data is contained in the structure, and reply to the message. Then use the local copy of the data for whatever is your purpose.
- In Mixer, create a public named message port.But how to "interconnect" the DOCKY (seems it's a separated task/process) with my main (mixer) program/task/process? Via Messages and Ports?
- Before the program goes into the main event loop, obtain the signal bit for this port:
Code: Select all
yourSigBit = 1 << yourPort->mp_SigBit;
Code: Select all
wsig = cxSigMask | SIGBREAKF_CTRL_C | appSigMask| (1<<replymp->mp_SigBit) | yourSigBit;
- In Mixer, when a message arrives at the named port, copy whatever data is contained in the structure, and reply to the message. Then use the local copy of the data for whatever is your purpose.
The Rear Window blog
AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
- javierdlr
- Beta Tester
- Posts: 389
- Joined: Sun Jun 19, 2011 11:13 pm
- Location: Donostia (GUIPUZCOA) - Spain
- Contact:
Re: Add options to AppDock context menu
THX trixie, yes it works fine adding my own MsgPort. 
