Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

addslider()

Mammad900 edited this page Feb 27, 2021 · 2 revisions

addslider(page, X, Y, width, height, AreaHeight, value, min, max, ColorLeft, colorRight, colorBorder, colorThumb, thumbWidth, enabled, visible) 

Summary

Adds a slider to the application user interface.

Parameters

  1. Page (int) : The number of the page which contains the new slider
  2. X (unsigned int) : The X position of the new slider in pixels.
  3. Y (unsigned int) : The Y position of the new slider in pixels.
  4. width (unsigned int) optional: The new slider’s width. Default: an auto value with which the slider is aligned to center ( screen height - ( X position * 2 ) )
  5. height (unsigned int) optional: The new slider’s height (thickness). Default: 10
  6. AreaHeight (unsigned int) optional: Another version of height used for touch. Default: height * 3
  7. value (int) optional: The new slider’s default value. Default: 0
  8. min (int) optional: The new slider’s minimum acceptable value. Default: 0
  9. max (int) optional: The new slider’s maximum acceptable value. Default: width - thumb width
  10. ColorLeft (uint16_t) optional: See this Default: black
  11. colorRight (uint16_t) optional: See this Default: black
  12. colorBorder (uint16_t) optional: See this Default: white
  13. colorThumb (uint16_t) optional: See this Default: white
  14. thumbWidth (unsigned int) optional: The new slider’s thumb (indicator) width in pixels. Default: 7
  15. enabled (bool) optional: If false, the slider is darkened and cannot be changed. Default: true
  16. visible (bool) optional: If false, the slider is hidden (not shown). Default: true

Returns

The index of the new slider

Clone this wiki locally