home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / MiscKit1.2.6 / Palettes / MiscCircularSlider / README < prev   
Encoding:
Text File  |  1994-05-30  |  2.8 KB  |  60 lines

  1. #
  2. #     Filename: README
  3. #     Created : Mon Sep  6 16:44:31 1993
  4. #     Author  : Don Yacktman <Don_Yacktman@byu.edu>
  5. #              Vince DeMarco <vince@whatnxt.cuc.ab.ca>
  6. #     LastEditDate Was "Mon Mar 28 02:09:09 1994"
  7. #
  8.  
  9. NOTE:  For this release, there are a few controls in the IB Inspector
  10. that either don't work yet or are a bit weird, interface-wise.  Ignore
  11. this; I just didn't have time to finish them up for release.  Sorry!
  12. The archiving format for the controls is stable, so using the sliders
  13. now in your .nibs won't be a problem for future versions; it's "safe"
  14. to go ahead and use this palette...
  15.  
  16. This is a rewrite of the circular slider classes:  Vince's CircularSlider
  17. palette and Don's RotationSlider palette.  It provides more options than
  18. either palette had by itself and fixes a few minor bugs which were mostly
  19. seen in the rendering.  (And probably introduces some new bugs... :*)
  20.  
  21. If you make any interesting subclasses please let us about them; we'd
  22. love to add any useful subclasses in the MiscKit!
  23.  
  24. Note that Don is the official maintainer of this palette; he is the one
  25. who performed the merge of the two palettes and knows the new code best.
  26. (In many ways it is very different from either of the two original
  27. classes, as it turns out.)
  28.  
  29. -----
  30. -Don Yacktman
  31. Don_Yacktman@byu.edu
  32.  
  33. vince demarco
  34. vince@whatnxt.cuc.ab.ca
  35.  
  36. ----------------------------------------------------------------------
  37.  
  38. Suggestions/comments from Carl Lindberg that I hope to get around to:
  39.  
  40.  The bordering option on the CircularSliders doesn't work.  The only way I could get it to work was to put the following code in MiscCircularSliderCell.m in the beginning of -drawSelf:inView:
  41.  
  42.      if ([self isBordered]) {
  43.       NXFrameRect(cellFrame);
  44.      }
  45.     else if ([self isBezeled]) {
  46.       NXDrawButton(cellFrame,cellFrame);
  47.      }
  48.  
  49.  That seemed to do the trick.  If you have to do this, it might be nice to add support for other border types, such as a real bezel (NXDrawGrayBezel() or maybe even NXDrawWhiteBezel()) and a groove.  (The button border looks rather nice with the slider style one).
  50.  This is also perhaps not the best place to put this code, but it does work.
  51.  
  52.   Also, a friend of mine mentioned it might be nice to be able to stop the slider from going all the way around, like the addition of a lowerStopValue and upperStopValue instance vars (which would by default be set to the lower and uppper bounds).
  53.  
  54.   Also, before the NXFrameRect() call, I had to do a PSsetgray(NX_BLACK);.\
  55. The black line appeared in Interface Builder, but not in test mode.
  56.  
  57. Also, it would probably be a good thing to put in a "Jumps to Mouse Click" under "Options", since it's there already.  Personally, I'd prefer TRUE there to be the default for all styles, but maybe that's just me.  Having a switch in IB would nullify any complaints there :-)
  58.   And aww, come on.... There's PLENTY of space left in the inspector... :-)
  59.  
  60.