-
Hello everyone, Do you know if it's possible to resize the main window ? Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
mtp
Jan 21, 2021
Replies: 1 comment 4 replies
-
Si I looked at the MasterWindow.go file. // Set position of master window.
func (w *MasterWindow) SetPos(x, y int) {
if w.platform != nil {
if glfwPlatform, ok := w.platform.(*imgui.GLFW); ok {
glfwPlatform.GetWindow().SetPos(x, y)
}
}
} So I used this one to create a SetSize function as : // Set size of master window.
func (w *MasterWindow) SetSize(width, height int) {
if w.platform != nil {
if glfwPlatform, ok := w.platform.(*imgui.GLFW); ok {
glfwPlatform.GetWindow().SetSize(width, height)
}
}
} But when I call this function when the app is already running, my program is exiting with the following error :
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
mtp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Si I looked at the MasterWindow.go file.
I found the following function
So I used this one to create a SetSize function as :
But when I call this function when the app is already running, my program is exiting with the following error :