-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Underlines for Alt key shortcuts in ImGui File Menu #6323
Comments
It is not currently possible other than yourself manually drawing a line (which involve calculating position of a given character). |
FYI this is in my checklist for the new text functions I've been writing (I put a few weeks of work on them several months ago but then had to prioritize other things). If we decide to restrict that feature to MenuItem inside menus, we can easily do some adhoc parsing there and it doesn't even need to be super-efficient, but my hope was that this could ideally be supported more globally (e.g. |
Thank you for sharing this information. I am not in a hurry. I am looking forward to the new text functions, including the implementation of the underlined Alt key shortcuts. Recently, I've noticed that some applications do not support Alt key shortcuts. I personally find them very useful and convenient, as I use them quite often. |
Version/Branch of Dear ImGui:
Version: 1.89
Branch: master
Back-end/Renderer/Compiler/OS
Back-end: GLFW + OpenGL3
Compiler: g++(MinGW)
OS: windows7
My Question:
I have a question about the file menu of ImGui. I understand how to use shortcut keys such as Ctrl+O and Ctrl+S, but I would like to know how to add an underline to the F in "File" and the E in "Edit" on the menu items. I would like to be able to open the file menu with Alt+F. In code, this feature can be achieved by writing "&File" or "&Edit". How can I represent this feature in ImGui?
The text was updated successfully, but these errors were encountered: