[Glgui-dev] ListBox & other ideas
Status: Alpha
Brought to you by:
druid-
From: sfranke <sf...@us...> - 2000-06-29 20:10:01
|
I decided to make listbox a control after all. It makes more sense, it uses buttons, etc to build itself - and this is how I've defined controls (kind of a higher-level GUI component). Hmm.. the semantics of this are probably needlessly complex. Anyway, listbox is done, which includes sublists. I'll probably break off the sublist functionality and put it in a CUI_Menu inherited from CUI_ListBox. I'm also planning on a fairly big change that will let CUI_Frame's (every GUI component) to have a pointer to the UI to which it belongs. This will expose a whole lot of functionality to the components. The initial reason I decided to do this was so that the List/Menu can make one of it's sublists selected so key commands are processed there. There's no way to do that without the change I will be working on. It also opens up a lot of other possibilities. All frame adding will be moved to go through CUI_UI (including subframes of controls which normally couldn't), so CUI_UI can do some extra stuff to the frames as they're added. Enabling and disabling will also go through CUI_UI so (with a few other changes) it will be simple to add fly-in or fade-in effects for when a frame becomes visible. Yeah, it's a bells and whistles feature, but it's simple once a required feature is added, so I don't see any drawbacks. There are probably lots of other possibilities that this allows that I haven't realized yet. Anyone have any comments on this or has this list turned into my personal dev diary? Scott Franke [druid-] sf...@gl... |