# Fullscreen mode question

**URL:** <https://forum.juce.com/t/fullscreen-mode-question/8111>\
**Category:** General JUCE discussion\
**Created:** [February 10, 2012, 6:34pm UTC](https://forum.juce.com/t/fullscreen-mode-question/8111 "2012-02-10T18:34:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![acid-2](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@acid-2](https://forum.juce.com/u/acid-2)\
**Post date:** [February 10, 2012, 6:34pm UTC](https://forum.juce.com/t/fullscreen-mode-question/8111/1 "2012-02-10T18:34:30Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [February 10, 2012, 6:54pm UTC](https://forum.juce.com/t/fullscreen-mode-question/8111/2 "2012-02-10T18:54:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![acid-2](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@acid-2](https://forum.juce.com/u/acid-2)\
**Post date:** [February 11, 2012, 8:41am UTC](https://forum.juce.com/t/fullscreen-mode-question/8111/3 "2012-02-11T08:41:34Z")

</div>

ok, but how to hide the titlebar?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [February 11, 2012, 10:44am UTC](https://forum.juce.com/t/fullscreen-mode-question/8111/4 "2012-02-11T10:44:31Z")

</div>

Use kiosk mode.

---

<div class="post-metadata">

**Author:** ![acid-2](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@acid-2](https://forum.juce.com/u/acid-2)\
**Post date:** [February 11, 2012, 12:22pm UTC](https://forum.juce.com/t/fullscreen-mode-question/8111/5 "2012-02-11T12:22:34Z")

</div>

I do use it

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

but the title bar is visible though

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [February 11, 2012, 1:35pm UTC](https://forum.juce.com/t/fullscreen-mode-question/8111/6 "2012-02-11T13:35:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![acid-2](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@acid-2](https://forum.juce.com/u/acid-2)\
**Post date:** [February 11, 2012, 5:09pm UTC](https://forum.juce.com/t/fullscreen-mode-question/8111/7 "2012-02-11T17:09:46Z")

</div>

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

> **[2012-02-11\_2103](https://www.screencast.com/t/TyrwuJ0UHg)**
>
> Shared from Screencast.com

To make it look like that

> **[2012-02-11\_2109](https://www.screencast.com/t/oNAxenDTC)**
>
> Shared from Screencast.com

---

<div class="post-metadata">

**Author:** ![AlricDoRei](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@AlricDoRei](https://forum.juce.com/u/AlricDoRei)\
**Post date:** [April 23, 2013, 7:15pm UTC](https://forum.juce.com/t/fullscreen-mode-question/8111/8 "2013-04-23T19:15:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 23, 2013, 8:07pm UTC](https://forum.juce.com/t/fullscreen-mode-question/8111/9 "2013-04-23T20:07:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![grimtraveller](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@grimtraveller](https://forum.juce.com/u/grimtraveller)\
**Post date:** [August 28, 2013, 9:48pm UTC](https://forum.juce.com/t/fullscreen-mode-question/8111/10 "2013-08-28T21:48:00Z")

</div>

&nbsp;&nbsp; &nbsp;MainWnd-\>setFullScreen(true);  
&nbsp;&nbsp; &nbsp;MainWnd-\>setTitleBarHeight(0);

&nbsp;

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