Re: lists & widgets
- Posted by David Cuny <dcuny at LANSET.COM> Mar 05, 2000
- 458 views
Jiri wrote: > I have whipped up a treat for you: widgets, basic > dos GUI elements. Nice stuff. A couple of nits to ignore: 1. Traditionally, a radio button represents an exclusive choice - you can only select one option from the group. Your rbuttons seem to act like checkboxes. 2. It would be nice if the label were part of the clickable area of checkboxes and radio buttons, otherwise you're limited to clicking a fairly small graphic. 3. The vlist has me a bit puzzled. In the demo, choosing clicking the up/down arrows didn't move the thumb. By the way, I really like the next-style scrolls, with the arrows stuck together. 4. The behavior of the lists is a bit disconcerting. I expected clicking the list to set focus on an item, not to choose an item. The lack of visible feedback makes me unsure as to which item I've actually selected. 5. It would be nice if the sle changed appearance to show that it was in edit mode - perhaps drawing a thick border around the box. The I-beam is a bit thin, especially if I have my glasses off. > Btw, associative lists I'm quite font of associative lists myself, and your implementation is typically clever. I had used a similar mechanism in Llama to try avoiding the namespace mess, but the overhead of using strings as keys turned out to be significant. I was thinking that, since Euphoria is optimized to append data elements, it might be faster to store the keys and values like so: { key list, value list } This might make the appending of new values onto the list slightly cheaper, although that's not a frequent operation. Again, very nice - almost enough to make me go back to the portable GUI project. -- David Cuny