I've finished the main part of my OS, and now i just need some ideas on how to make a good GUI in C, C++, Assembly or BASIC (i made a BASIC compiler for my OS, and i can run the GUI as an external app that interfaces with the kernel/text shell).
I've tried making GUI's, but they always either end up slow and buggy, or they don't look proffesional enough.
Anyone got any code examples/ideas for GUIs?
GUI Design
Re:GUI Design
Valued guest,
please refer to the sticky threads and the FAQ, more specifically the thread What is a kernel - shell - GUI, which contains pointers into previous threads on the subject within this forum.
Please understand that someone who does his first posting to a board, and does not bother to read the sticky threads or even create a user account for that board, and then posts such a sweeping and general question as yours will be politely pointed towards existing documentation and asked to come back when he has a bit more precise questions that do not require a textbook as an answer.
please refer to the sticky threads and the FAQ, more specifically the thread What is a kernel - shell - GUI, which contains pointers into previous threads on the subject within this forum.
Please understand that someone who does his first posting to a board, and does not bother to read the sticky threads or even create a user account for that board, and then posts such a sweeping and general question as yours will be politely pointed towards existing documentation and asked to come back when he has a bit more precise questions that do not require a textbook as an answer.
Every good solution is obvious once you've found it.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:GUI Design
You should read about generic 2D programming techniques to make it less slow (e.g. avoid repainting what need not to be repainted).I've tried making GUI's, but they always either end up slow and buggy, or they don't look proffesional enough.
You should debug it in a well-established system first (where you have access to plenty of debugging tools such as DDD, GDB and friends).
I don't know what you mean by "look professional", but if it's about colors, icons and the like, just google for a free theme you like in other GUIs, or find a friend that's better at photoshop ^_^
Sure, James T. Klik did a great job collecting previous threads about GUIs.Anyone got any code examples/ideas for GUIs?
Re:GUI Design
Gui programming is the same as games programing, and that where you will get most of your info, first you need a function to get into the right graphic mode, then you need functions for putpix, drawbox, DrawVline, DrawHline etc.
This simple gui was done using simple functions, like the above .
http://www.dex4u.com/guipong.htm
This simple gui was done using simple functions, like the above .
http://www.dex4u.com/guipong.htm