GUI Design

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
JaMiE P

GUI Design

Post by JaMiE P »

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?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:GUI Design

Post by Solar »

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.
Every good solution is obvious once you've found it.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:GUI Design

Post by Pype.Clicker »

I've tried making GUI's, but they always either end up slow and buggy, or they don't look proffesional enough.
You should read about generic 2D programming techniques to make it less slow (e.g. avoid repainting what need not to be repainted).

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 ^_^

Anyone got any code examples/ideas for GUIs?
Sure, James T. Klik did a great job collecting previous threads about GUIs.
Dex4u

Re:GUI Design

Post by Dex4u »

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
Post Reply