API 文件集 > Custom user interface > Object ProUISpinbox > Function ProUISpinboxDoubleformatSet
Function ProUISpinboxDoubleformatSet
Description
Sets the format used to display a double in a spin box. The format specification has the same syntax as for printf(), but with these restrictions :
do not specify the total field width,
specify the number of digits after the decimal point in float format using the '*' character - the number of digits is specified using ProUISpinboxDigitsSet().
The default value is "%.*lf"
Synopsis
#include <ProUISpinbox.h>
ProUISpinboxDoubleformatSet
(
char* dialog
/* (In)
The name of the dialog that contains the spin box
*/
char* spinbox
/* (In)
The name of the spin box component
*/
char* format
/* (In)
The format specification
*/
)
Returns
The function was successful
The function failed
User Guide References
這是否有幫助?