Fullscreen mode question


#1

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


#2

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


#3

ok, but how to hide the titlebar?


#4

Use kiosk mode.


#5

I do use it

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

but the title bar is visible though


#6

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


#7

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

To make it look like that


#8

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.


#9

[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.


#10


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

 

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