Floatting tool window


#1

Is there any way to do a floating tool window on juce? One that looks like this:

There are similar windows on the mac.

It needs the styles WS_POPUP | WS_SYSMENU | WS_THICKFRAME | WS_CAPTION as well as a parent hwnd passed in


#2

I’ve never written anything to do it, it’d require a bit of hackery. Would be a nice thing to have though.


#3

What about the drag component in the Juce demo ?


#4

It can go behind the main window. The benefit of a popup window is that it’s z-order is fixed, so that it can’t go behind, yet it can still move outside of the parent.

I think it using this type of window would make more sense for menus, message boxes and dialog boxes.

I tried hacking it in, grabbing the window handle and setting the styles, but it didn’t really work. The mouse messages stopped working and juce drew over the nonclient area of the window.