Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!uakari.primate.wisc.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!hsdndev!dartvax!news From: kriso@lombard.dartmouth.edu (Kris Olander) Newsgroups: comp.windows.open-look Subject: _SLIDER, and _NUMERIC_TEXT Why _only_ ints? Message-ID: <1991Mar15.205511.26300@dartvax.dartmouth.edu> Date: 15 Mar 91 20:55:11 GMT Sender: news@dartvax.dartmouth.edu (The News Manager) Organization: Dartmouth College, Hanover, NH Lines: 28 Originator: kriso@lombard.dartmouth.edu Why didn't the makers of the XView toolkit allow the PANEL_SLIDER and PANEL_NUMERIC_TEXT panel items to take floating point values? I suppose it wouldn't be too difficult to implement a version of these two panel items that allowed users to specify something like: PANEL_VALUE_PRECISION, TENTH, (or HUNDREDTH,...) or even TENS, (or HUNDREDS, ...) for that matter. Im writing an application where a user wants to type in the price of a bond, or the yield of a bond. The only method I can see is to use PANEL_TEXT and then use various string conversion routines to convert to the necessary floating point values. I'm using the O'Reilly XView 1.0 manual, so if I'm missing some feature that is in version 2.0 of XView, please let me know. -- Kris Olander --------------kris.olander@dartmouth.edu----------------