Category Custom user interface, Object ProUISpinbox

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>
ProErrorProUISpinboxDoubleformatSet(
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
PRO_TK_NO_ERRORThe function was successful
PRO_TK_GENERAL_ERRORThe function failed

Manual References:

  1. User Interface: Dialogs: Spinbox Attributes