Looking for design docs on user controls like Textbox, ComboBox, etc...

Started by
11 comments, last by owl 19 years, 7 months ago
I'm codign some of these controls from scratch, and they do work already, but I would like to see if someone came up with better ideas than I, and possible adopt them in my own design. Have you seen something like this on the web? Could you post a liky or something? Thank you very much!
[size="2"]I like the Walrus best.
Advertisement
¡pmub
[size="2"]I like the Walrus best.
You're unlikely to find a complete design document for controls as trivial as text boxes and combo boxes. I don't really see what kind of "ideas" you're expecting, these controls pretty much have well-defined behaviors that you shouldn't deviate from too much.
I'm worried about the font/text handling and displaying more than anything. I'm doing all this by myself too, so I would like to see how someone else handled this, just curious.
[size="2"]I like the Walrus best.
Why don't you take a look at how sun did it in Java. You can find the documentation here and the API here hope that helps.

EDIT: Ahh, where can I find a doc about what codes to use in this forum? I always forget how to do links etc...
garazdawi - 'I put the laughter back in slaughter'
@owl

I think that you could also look through the MSDN stuff for windows controls. They have a bunch of nice ideas that they used, their methods and interface are well designed, and I'd certainly reccomend using that (interface) as a starting point. I also seem to remember seeing some controls stuff used in a game situation in the source to Quake 2, but I'm not really sure if that's worth the download, because it's a pretty small subsection of the total code, and is pure C.

@garazdawi

I think that you can just use HTML and it'll work. Otherwise, there used to be a sticky, which has... (a few minutes later) been moved to http://www.gamedev.net/community/forums/faq.asp With some of the tags around 1/2 way down, though it's really just the and [ source lang="cpp" ]
[ /source ] stuff that's useful...
[edit : Why did I expect that you'd be able to see what I was saying with the tags being replaced... Fixed.]

Anywho,

//end rant;

CJM
@CJM: Hehe, I had a temporary brain collapse and forgot that HTML use '<' instead of '['.
garazdawi - 'I put the laughter back in slaughter'
Thank you both. Rate++ for your time.

More input from others will also be appreciated.
[size="2"]I like the Walrus best.
You might also want to take a look at http://www.codeguru.com or http://www.codeproject.com.

They feature tons of self written controls. They use MFC a lot, but the code is still there to look at and with minor modification runs also well in pure Win 32 API.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

Quote:Original post by Endurion
You might also want to take a look at http://www.codeguru.com or http://www.codeproject.com.

They feature tons of self written controls. They use MFC a lot, but the code is still there to look at and with minor modification runs also well in pure Win 32 API.

Both of these sites are great. I particularly like this control: CSizingControlBar

This topic is closed to new replies.

Advertisement