You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The title bar is avoidable with glfwWindowHint(GLFW_DECORATED, GLFW_FALSE); but then one would need to handle dragging and the minimize/maximize/close buttons on their own.
My question is: The menu bar being a nk_rect at top of the window created with:
It has flags 0, so it is not moveable, and it contains the menubar_begin.
How can I make it that so when the user clicks and drags, the rectangle part will move the outer window, such as an operating system generated title bar would?
Best Regards,
C.
The text was updated successfully, but these errors were encountered:
Hi altineller
If you are meaning the main rendering window with title bar and borders hidden...
I am looking into this too (as well as transparency for the window canvas) on Allegro and SDL2.
One option I am thinking about is to capture capture MOUSE_DOWN x.y over the NK title bar bounds (header) and use the x.y up, down. left, right to move the rendering window (Allegro) by the same amount obtained from the title bar.
For this I would have to send the modified +/-x,+/-y to al_set_window_position(x, y); in Allegro during the drag.
There may be an easier way to do it but I can't see it in Alegro5 at the moment.
Depends on your platform. In SDL, I believe you can use SDL_NOFRAME, but I haven't tried it before. This is likely out of scope for the Nuklear renderers themselves though. More a renderer/platform thing.
Hello,
I would like to make a title bar such as:
The title bar is avoidable with glfwWindowHint(GLFW_DECORATED, GLFW_FALSE); but then one would need to handle dragging and the minimize/maximize/close buttons on their own.
My question is: The menu bar being a nk_rect at top of the window created with:
It has flags 0, so it is not moveable, and it contains the menubar_begin.
How can I make it that so when the user clicks and drags, the rectangle part will move the outer window, such as an operating system generated title bar would?
Best Regards,
C.
The text was updated successfully, but these errors were encountered: