From: Andrew G. <ag...@em...> - 2003-02-10 20:52:02
|
On Saturday, Feb 8, 2003, at 18:19 America/Mexico_City, Michael D. Crawford wrote: > I've been trying to put a slider in my window but nothing shows up. > > Looking into the code, trying to draw it calls through to > RenderSlider. This seems to only be defined for the platinum renderer > but the function body is empty. > > Is the slider not yet implemented or am I just missing something? > > If it's not there yet I can do a scroll bar for now. I'll try to > implement a slider and contribute it. I did one on a previous > project. > > I've been such a slacker the last couple of weeks it's taken me > several days to figure out where my slider is at. I didn't have anything that needed a slider, so I never got around to implementing it. The intent was that it would have the same protocol as a scrollbar (they both implement ZUIRange), but without some actual test cases I was never able to define an appropriate mechanism and interface for defining and handling tickmarks and labels attached to those tickmarks -- one might need regularly spaced, exponentially spaced, randomly or data-driven spacing etc. So that's why it's not there. The main task, for something fully general, is identifying the state needed to back a slider (count and location of ticks, labels at those ticks), and appropriate representations for that state. The dynamic behavior options (snapping to tickmarks or smoothly scaling for example) is the responsibility of the responder. A+ -- Andrew Green mailto:ag...@em... Electric Magic Co. Vox/Fax: +1 (408) 907 2101 |