Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Fri Nov 24, 2017 6:13 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SliderV2 resolution
PostPosted: Wed Jul 06, 2011 11:30 am 
Offline

Joined: Thu Aug 09, 2007 4:44 pm
Posts: 67
I have SliderV2 object with a range of 1-100 and a resolution of 1. If I click on the object at any particular point I can set the value to any # from 1-100, but if I drag the slider the resolution is lower and the value only changes in increments of between 1 and 3 at a time, seemingly randomly. I can scroll down slowly and get different values than I got scrolling up slowly. Is there a way to change this so I can access the full resolution of the increment (assuming I have enough pixels to match)?

Thanks much,

Aaron


Top
 Profile  
 
 Post subject: Re: SliderV2 resolution
PostPosted: Wed Jul 06, 2011 12:20 pm 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
You would probably be better off using a SpinnerV2 if you need that kind of single step functionality. The Slider movement is going to determined by the touchscreen hardware which will not give you 1 pixel point accuracy. However, I think I have a something that might be what you're looking for. If you paste this code into an instance of a Slider below the property init's, you can force it to only change by 1.

Code:
func value(newval as float)
    if newval < value then
        newval := value - 1
    else
        newval := value + 1
    endif

    default(newVal)
endfunc

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group