logoalt Hacker News

Let's write a toy UI library

97 pointsby birdculturelast Tuesday at 10:31 AM18 commentsview on HN

Comments

ctothtoday at 8:33 PM

Which of these 24 parts cover accessibility?

Ah, this one:

> That said, you could add a description string to the common element header that screen readers could use, but accessibility concerns are out of scope for this toy UI library.

I love it when tutorials teach people to ignore people like me.

Am I being harsh? Well where's the tutorial that teaches people how to do it properly? Where do people actually learn the right way if not here?

show 8 replies
Mikhail_Edoshintoday at 8:17 PM

Seems to be exactly what I was looking for. Somehow it's not that easy to find a good explanation of these techniques. I tried old graphic programming books, but their sections on GUI are tiny.

show 1 reply
canyptoday at 9:32 PM

Have not read all of it but it looks great. Also like the minimalistic style of the website.

formerly_proventoday at 7:46 PM

If you don't keep it as a toy, it can get out of hand quickly. For example, here's the partial implementation of QWidget, almost 500k of code: https://github.com/qt/qtbase/blob/dev/src/widgets/kernel/qwi...

show 2 replies
self_awarenesstoday at 7:32 PM

It looks like WinAPI Window Management via CreateWindow / SetWindowText / SendMessage.

https://gist.github.com/a3f/22d0d2688b56e79865f8

imvetritoday at 7:35 PM

is it an application builder?