Buttons, labels, vbox and hbox work. click on a button and it changes shade briefly and the associated proc is called. So far it wasn't too hard and I think it is promising but text boxes, tree widgets, etc, scroll bars and more are needed. Some questions below.
Request for comments:
- Please suggest a name for this UI, I'm calling it ckui for now.
- If this project reached a decent level of implementation would you be likely to use it?
- I've modeled the interface after IUP and so far it is very similar. Is this a pro or con?
- Buttons and other moving widgets could be implemented with either iqm models or sprite sheets. Which of those options would be more interesting for you?
This is the guts of the calculator UI:
(gl:clear-color 0.8 0.8 0.8 1)
(show
(apply vbox
(label 'title "0123456789" 'w 120)
(map (lambda (lst)
(apply hbox
(map
(lambda (c)
(button
'title c
'w 30
'h 32
'action (lambda (obj)
(print "You pushed "c))))
lst)))
'(("1" "2" "3" "+")
("4" "5" "6" "-")
("7" "8" "9" "*")))
))
--