Making a "open file" window e.g., appear inside a

How making a contextual component, like an open-file or save-as window for instance,
inside a window.

I imagine such a component rising down from the superior window title like this (there is such in Qt4 e.g.) :
////////////////////////////////////////////////////////////////////
//////////////// TOPLVL WINDOW TITLE BAR ///////////////////
////////////////////////////////////////////////////////////////////
// ||||//
// _______||___OPEN_FILE:
||
______//
// _______||
||//
// ||
___||//
// ________\================//
//
//
//
//
//
//
//
//
_______//
////////////////////////////////////////////////////////////////////

A Juce thing to do that ?

I’d like to avoid “pop up” window actually…

Roll your own.

You could for example:

  • create a small set of dialog functions that exist on an arbitrary panel.

  • create a popup displayer that finds the top level component (or if necessary, the content component), and uses a timer to slide the dialog panel down, and then back up again from the title bar.

This displayer class will need to make the background options appear to be modal. One easy cheat is to add a container panel that is fully transparent, but grabs all key/mouse events to cover the main UI, then make the dialog panel a child of that mask panel.