Differences

This shows you the differences between two versions of the page.

Link to this comparison view

extensions:sx_slider [2015/09/14 11:14]
extensions:sx_slider [2015/09/14 11:14] (current)
Line 1: Line 1:
 +~~NOTOC~~
  
 +====== SXSlider ======
 +
 +---- dataentry extension ----
 +type          : extension  # or 'mod' if it requires changing the Sparrow source 
 +author_mail   : pixelrevision@gmail.com Malcolm 
 +description   : A simple slider control similar to UISlider           # enter a short description of the extension
 +lastupdate_dt : 2011-4-11 # the date you created the extension
 +compatible    : v1.1       # the Sparrow version you tested the extension with
 +depends       :            # if the ext. depends on others, list them here
 +tags          : slider, uislider, form           # enter a few tags, separated by commas
 +homepage_url  : https://gist.github.com/914991           # if the ext. has an URL (e.g. a Gist-page), add it here
 +download_url  : https://gist.github.com/gists/914991/download            # a direct link to the download (e.g. the Gist-archive)
 +----
 +
 +===== Usage =====
 +
 +<code objc>
 +- (id)initWithWidth:(float)width height:(float)height {
 +    self = [super initWithWidth:width height:height];
 + slider = [[SXSlider alloc] init];
 + slider.min = -20;
 + slider.max = 100;
 + [self addChild:slider];
 + [slider addEventListener:@selector(onValueChange:) atObject:self forType:SX_SLIDER_EVENT_UPDATED];
 +    return self;
 +}
 +
 +- (void)onValueChange:(SPEvent*)event{
 + NSLog(@"slider val: %f", slider.value);
 +}
 +</code>
 +
 +===== Changelog =====
 +
 +  * //2011/04/12 07:29//: First public version
 +
 +===== Source Code =====
 +
 +%gist(914991)%
 +
 +===== Discussion =====
 +
 +//No comments so far. Feel free to edit this part of the page.//
  extensions/sx_slider.txt · Last modified: 2015/09/14 11:14 (external edit)
 
Powered by DokuWiki