-
Aug 13th, 2014, 12:59 PM
#1
How are windows created
I'm wanting to create a GUI Lua application, but I do not want to use any toolkits. So I was wanting to know how windows are created. For example, what API should I call to even create a window? What are some common mistakes when creating a GUI from scratch?
The reason I placed the question here rather than in Other Programming Languages is because while my specific problem is with Lua, I'm sure that this can be applied to multiple languages.
-
Aug 13th, 2014, 01:30 PM
#2
Re: How are windows created
I think you are in far over your head but given some time and energy...
Maybe start at CreateWindow function? Note that this has zero portability to other OSs.
-
Aug 13th, 2014, 01:37 PM
#3
Re: How are windows created
Thanks for that link, I'll study on that for a bit. As far as portability, I'm not to concerned about it for now, but eventually I will be. I think whenever I get to that point I'll use a toolkit.
-
Aug 19th, 2014, 05:19 AM
#4
Re: How are windows created
Originally Posted by dilettante
CreateWindowEx is more flexible. It can use extended window styles.
Originally Posted by dilettante
I think you are in far over your head but given some time and energy...
Not really. Its not all that hard to get working. I once got CreateWindowEx to work from VB6 with surprisingly little problem. The only thing that's annoying is all the parameters you have to fill out and the hassle to register the window class. And there's plenty of C/C++ code on the internet that shows how to create windows using the Win32 API.
-
Aug 20th, 2014, 06:53 AM
#5
Re: How are windows created
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|