Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6077013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:40:22+00:00 2026-05-23T10:40:22+00:00

For a while now, I have been wanting to create my own GUI library

  • 0

For a while now, I have been wanting to create my own GUI “library” in C++ and DirectX 9. I have seen a ton of questions regarding GUIs, but what I want is a GUI specific to games. Most libraries are really complex and are very generic, and they offer support for command line parsing and window creation etc. These libraries don’t suit my needs, so I want to write my own. The only problem is I don’t know where to start.

I have no idea how to build a framework/foundation for the library. I don’t know how to make the GUI elements/objects communicate with each other and how to handle events. I also have no idea how to manage the graphics of the GUI. For example, do I give the programmer full responsibility over how the GUI looks, or do I create a default design? Do I then store store a separate file for the design of a button, textbox, label, combobox etc.?

I would also like to point out that I plan on my GUI in fullscreen mode only, and that I only want to support basic elements like buttons, textboxes, static labels etc. And that I would like to be able to create a HUD with the library. I know that I am asking to many questions, but I have never tried to create anything this complicated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:40:23+00:00Added an answer on May 23, 2026 at 10:40 am

    Writing your own gui would be a good educational task, as you will soon have to learn the design patterns that are used to make it scalable. If you are interested, the GoF book
    uses GUI as an example to many of the patterns.

    However, it is a large (HUGE – I mean years of your life) task to do it properly.

    One project that might interest you, however, is the cIMG library. This is an image processing libary rather than a gui library. It doesn’t support buttons or any such like, but it does do rather low level drawing which might be closer to your final goal (it doesn’t outsource its imaging to a gui/graphics library). It is also a header only library, with all code in a single header file, and so fairly easy to have a peek at.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been wanting to make a RSS reader for a while now (just
I have been using C# for a while now, and going back to C++
I have been using Ruby for a while now and I find, for bigger
Hello I have been having trouble with this for a while now. I have
So I have been working on this project for a short while now. I
I have been using IoC for a little while now and I am curious
I have been tinkering with BSP trees for a while now and am also
I have been learning to use Emacs for a little while now. So far
I have been using the CodeIgniter system for a while now - but it
I have been working with resource files for a while now and I was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.