Skip to content
Discussion options

You must be logged in to vote

Yes, you got it right ! This is the way I do it:

  • 1 run your app with the gui:expert=true command line argument
  • 2 configure the windows manually
  • 3 invoke the menu entry Windows->Export gui state to C++
    This creates a gui_state.h file, that you need to #include in your app source.
    Then you can load the serialized gui state by using Application::set_gui_state(). This is the way that I prefer, because it lets you completely control the state of the windows (including docking and visibility).

Alternatively, you may use instead ImGui::SetNextWindowPos() and ImGui::SetNextWindowSize().

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ling-RT
Comment options

Answer selected by BrunoLevy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants