NiGui
NiGui copied to clipboard
Make window not resizable
Hi! Sometimes you need make not resizable window. So far I haven't found such feature in NiGui, am I wrong?
I saw in the code that there were an event that is triggered when the window get resized, so you could use that to detect when the window get resized and resize it back
I found that method handleResizeEvent*(window: Window, event: ResizeEvent) {.base.}
maybe It can help for now
Something like this should work
window.handleResizeEvent = proc(event: ResizeEvent) =
window.width = 600.scaleToDpi
window.height = 400.scaleToDpi