pthom / hello_imgui

Hello, Dear ImGui: unleash your creativity in app development and prototyping
https://pthom.github.io/hello_imgui
MIT License
676 stars 103 forks source link

Ability to put user menu items between the App Menu and the View Menu #80

Closed west-rynes closed 11 months ago

west-rynes commented 11 months ago

Apologies if I missed it in the documentation, I want to add a File menu to the application menus. But when I add my callback using (I am using the python bindings)

runner_params = immapp.RunnerParams()
runner_params.callbacks.show_menus = [my menu ui function]

the menu it is by default after the View menu. If I want to have my menu ui run before the View menu is generated is there a way to specify that (or that the auto generated View menu goes after? I didn't notice any config in the runner_params that would allow me to do this.

Thanks

pthom commented 11 months ago

Hello Anthony,

You are right, this was a missing part of the API. I corrected this. See b2f65467fb0ba59d1946aa904f308a60c4243012

See usage in python

You will need to build the python package from source