Results 1 to 5 of 5

Thread: How are windows created

  1. #1

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,753

    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    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.

  3. #3

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,753

    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  4. #4
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,600

    Re: How are windows created

    Quote Originally Posted by dilettante View Post
    Maybe start at CreateWindow function?
    CreateWindowEx is more flexible. It can use extended window styles.

    Quote Originally Posted by dilettante View Post
    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.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  5. #5
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,807

    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
  •  



Click Here to Expand Forum to Full Width