DDgui Programmers Reference Guide by Nicholas J. Kingsley - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Sliders

 

No, this isn't to do with the American Sci-Fi program – sliders are a horizontal bar that the user can can to specify a value.

 

Sliders can be created with :

 

DDgui_slider(id$, value [,width%, height%])

 

with id$ being a unique identifier, and value is the default value to be used.

 

width% and height% are optional.  If these are given, the the widget will be created with the horizontal size defined by width% and the vertical size by height%.

 

By default, the slider range is between 0.0 and 1.0, with a step value of 0.01

 

The minimum range can be changed using DDgui_set and a MINVAL parameter, whilst the maximum value can be changed using DDgui_set and a MAXVAL parameter

 

Note :

 

  • You need to make sure that the pointer position is always between the minimum and maximum range

 

A slider looks like :

 

img10.png

Find Your Next Great Read

Describe what you're looking for in as much detail as you'd like.
Our AI reads your request and finds the best matching books for you.

Showing results for ""

Popular searches:

Romance Mystery & Thriller Self-Help Sci-Fi Business