formZ SDK | 5.0 API Reference | System | User Interface (FUIM) | Templates

# fz_fuim_new_slid_edit_pcent_double

Description

Creates a slider item with an edit box using a double for the range where the value is displayed as a percentage. The 0 ... 1 based range values [min, max] are mapped to the 0 ... 100 based display values [pmin, pmax]. In other words, the min, max and data arguments need to be 0 ... 1 based. The pmin and pmax arguments need to be 0 ... 100 based.
Pass FZ_FUIM_NONE for id to not assign a specific item id. An id will be created and assigned to the item.
Pass FZ_FUIM_ROOT for parent if there is no parent group.

Plugin Prototype

short fz_fuim_new_slid_edit_pcent_double(

fz_fuim_tmpl_ptr | fuim_tmpl,
short | parent,
char * | titl_str,
short | slid_item_id,
short | edit_item_id,
double | min,
double | max,
double | pmin,
double | pmax,
fzrt_int | range_flags,
fz_fuim_item_func | item_func,
double * | data,
short * | slid_item,
short * | edit_item )

Parameters

fuim_tmpl [Input]

fuim manager

parent [Input]

parent group

titl_str [Input, Optional]

slider title

Default Value: a slider item without a name is created

slid_item_id [Input]

slider item id

edit_item_id [Input]

text edit item id

min [Input]

minimum value of slider (range value, 0 ... 1 based)

max [Input]

maximum value of slider (range value, 0 ... 1 based)

pmin [Input]

minimum value of slider (display value, 0 ... 100 based)

pmax [Input]

maximum value of slider (display value, 0 ... 100 based)

range_flags [Input]

range flags

Bit Flag Type: fz_fuim_range_enum

item_func [Input, Optional]

item function

data [Input]

pointer to the data, 0 ... 1 based

slid_item [Result, Optional]

slider item id

edit_item [Result, Optional]

text edit item id

Returns

Static text item id

Availability

5.0.0.0

See Also

fz_fuim_new_slid_edit_pcent_int,, ,, ,, fz_fuim_new_slid_edit_double,

Function Set

fz_fuim_fset

Defined in

fz_fuim_api.h