# Positioning a CallOutBox under a SystemTrayIconComponent

**URL:** <https://forum.juce.com/t/positioning-a-calloutbox-under-a-systemtrayiconcomponent/37333>\
**Category:** General JUCE discussion\
**Created:** [January 27, 2020, 8:09am UTC](https://forum.juce.com/t/positioning-a-calloutbox-under-a-systemtrayiconcomponent/37333 "2020-01-27T08:09:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liamtmlacey](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/liamtmlacey/32/82_2.png) [@liamtmlacey](https://forum.juce.com/u/liamtmlacey)\
**Post date:** [January 27, 2020, 8:09am UTC](https://forum.juce.com/t/positioning-a-calloutbox-under-a-systemtrayiconcomponent/37333/1 "2020-01-27T08:09:27Z")

</div>

Hi,

I’m currently attempting to develop a task bar app (no desktop window or macOS dock icon - just a system tray icon that displays some sort of popup when clicked).

I’ve copied over the code from the DemoTaskBarComponent from the JUCE Demo and that all works fine, however I’m now trying to replace the PopupMenu with a CallOutBox.

The CallOutBox appears (using example code from the classes docs), however I’m struggling to figure out how to obtain the correct position values for ‘areaToPointTo’ so that the CallOutBox is drawn underneath the system tray icon.

Any ideas?

Thanks in advance.
