Yue Posted July 22, 2017 Share Posted July 22, 2017 One question, how do I center a window with respect to the width and height of the desktop? Quote Link to comment Share on other sites More sharing options...
gamecreator Posted July 22, 2017 Share Posted July 22, 2017 I don't know what this looks like in Lua but this does it in C window = Leadwerks::Window::Create("Leadwerks", 0, 0, 1280, 720, Leadwerks::Window::Titlebar | Leadwerks::Window::Center); I wish the documentation mentioned the option. You could probably also use SetLayout after creating the window but you'd need to get the desktop resolution somehow. 1 Quote Link to comment Share on other sites More sharing options...
Yue Posted July 22, 2017 Author Share Posted July 22, 2017 10 minutes ago, gamecreator said: I don't know what this looks like in Lua but this does it in C window = Leadwerks::Window::Create("Leadwerks", 0, 0, 1280, 720, Leadwerks::Window::Titlebar | Leadwerks::Window::Center); Thanks!! window=Window:Create(title,0,0,gfxmode.x,gfxmode.y,Window.Titlebar+Window.Center) 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.