Imgui: I just want a dialog based application

Created on 7 Oct 2019  路  8Comments  路  Source: ocornut/imgui

Version/Branch of Dear ImGui:

Version: dear imgui, v1.73
Branch: master

Screenshots/Video
image

My Issue/Question:
Hi!
I just want a dialog based application(Hello, world!) without backgroud window(Dear ImGui DirectX11 Example) for drawing.
Is that possible? How should I do?
Thanks!

Most helpful comment

Please move this to Discord or elsewhere, thank you.
https://discord.gg/NgJ4SEP

I apologize but I am going to have to setup baseline proficiency requirements on opening issues. This place cannot be helping the entire internet learning c++, it's just harming dear imgui development.

All 8 comments

You'll have to be a bit clearer.
A dialog based application? So you want your entire appliciation to just be dialogs? As in the warning dialogs you'd get when something wrong happens?
Or do you just want a big background window that covers the entire screen without small windows that you can drag around?
Or do you want an application that contains of different native windows?

My problem gets clear by uploaded image with title names of dialogs. I tried to seek the api to conceal the background window. But I found nothing.
I am grateful if somebody helps.

So you basically want something like this:
image
A window that fills the entire screen?

Yes it's definitely possible.
You always have at least one OS window (the one with the green background, in your screenshot). And you always need to have one ImGui window. The trick is to maximize that single ImGui window to fill the OS window, like on the screenshot shown by @Folling.

You can use SetNextWindowPos, SetNextWindowSize calls with appropriate arguments before you Begin the ImGui window.

So you basically want something like this:
image
A window that fills the entire screen?

Yes, How do you implement that? Do as corentin-plouet said with SetNextWindowPos, SetNextWindowSize or someway easier?
Thanks for your reply!

If you don't need the menubar you can use ImGui::DockSpaceOverViewPort and then dock the window to that dock-id.
The dockbuilder API is a bit flimsy right now, but you can read about it here:
https://github.com/ocornut/imgui/issues/2109#issuecomment-426204357

SetNextWindowPos(ImVec2(0,0))
SetNextWindowSize(ImGui::GetIO().DisplaySize)
Begin(...)

Please move this to Discord or elsewhere, thank you.
https://discord.gg/NgJ4SEP

I apologize but I am going to have to setup baseline proficiency requirements on opening issues. This place cannot be helping the entire internet learning c++, it's just harming dear imgui development.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BlackWatersInc picture BlackWatersInc  路  3Comments

mnemode2 picture mnemode2  路  3Comments

bizehao picture bizehao  路  3Comments

inflex picture inflex  路  3Comments

NPatch picture NPatch  路  3Comments