Re: [Fxruby-users] FXSlider & FXDail
Status: Inactive
Brought to you by:
lyle
From: Joel V. <vj...@PA...> - 2003-10-06 17:59:47
|
meinrad recheis wrote: > Robert McGovern wrote: > >> Hi there, >> >> Came across my first frustration today, I need to be able to increment >> by 0.1 and neither FXSlider nor FXDail support that. I know I can get >> around this by rescaling the values being used but from my users point >> of view I unfortuatly need a "cleaner" solution. >> >> I assume this is a problem with Fox itself rather than FXRuby? If so I >> wonder if Joeren (?) is open to petition on this. >> >> Rob >> > hi, > hey! you are using ruby. you can adopt nearly everything to your needs. > > you could subclass FXSlider and overwrite the methods so that they > accept and return float values. something like this should work (note: > untestet code without any errorchecking i.e. div by zero, > @float_increment.nil? ...) I'm probably missing something in the docs or examples, but I'm wondering if it is possible to display tick marks along a slider with numeric values as accompanying text labels. If so, would it be possible to adapt this "fixed point" slider to display the correct labels? |