Fullscreen mode question

How to make fullscreen mode for my windows application? I checked forum but didn’t find any working solution.
thanks!
I saw that http://www.rawmaterialsoftware.com/viewtopic.php?f=2&t=1939&hilit=fullscreen but it has parent window on the background so I cannot close it by alt+F4

I don’t understand what you mean about a parent window, but ResizableWindow::setFullScreen() or Desktop::setKioskModeComponent should do the trick.

ok, but how to hide the titlebar?

Use kiosk mode.

I do use it

void MainComponent::onFullScreenModeItemTriggered() { getPeer()->setFullScreen(true); Desktop::getInstance().setKioskModeComponent(getTopLevelComponent(), false); }

but the title bar is visible though

Ah - a native title bar will be hidden, but a juce one won’t.

I may mislead you.
I need ot get rid of that

To make it look like that

I tested setKioskModeComponent(…) on Windows 8. I think it is not correct, that the main window(DocumentWindow) can be resizable in the Kiosk Mode.
Kiosk mode doesn’t work with native title bar, when the main window is resizable.

[quote=“AlricDoRei”]I tested setKioskModeComponent(…) on Windows 8. I think it is not correct, that the main window(DocumentWindow) can be resizable in the Kiosk Mode.
Kiosk mode doesn’t work with native title bar, when the main window is resizable.[/quote]

The DocumentWindow class doesn’t know when it’s in kiosk mode, so just lets you resize it. If you really want to have a non-resizable window, you need to use some other top-level component type, or turn off DocumentWindow’s resizability.


    MainWnd->setFullScreen(true);
    MainWnd->setTitleBarHeight(0);

 

this works for me to do exactly what you were looking for,