In IupMatrixEx you can use NUMERICDECIMALSYMBOL and NUMERICFORMAT to define the locale and the display of thousand separator.
In IupMatrix you can use the callback mode, to store the values your self and return the formatted string in VALUE_CB callback. Best, Scuri On Sat, Aug 20, 2016 at 10:12 AM, Ranier VF <[email protected]> wrote: > Hi, > IupSetAttributeId(mat, "NUMERICQUANTITY", 2, "None"); > IupSetAttributeId(mat, "NUMERICDECIMALSYMBOL", 2, ","); > IupSetIntId(mat, "NUMERICFORMATPRECISION", 2, 2); > > > With IupMatrixEx, works to precision format, but not to > > comma separator. > > > Thanks. > > > Ranier Vilela > > > ------------------------------ > *De:* Antonio Scuri <[email protected]> > *Enviado:* quinta-feira, 18 de agosto de 2016 20:40 > *Para:* IUP discussion list. > *Assunto:* Re: [Iup-users] How display numeric values with comma and 2 > decimals? > > Take a look at IupMatrixEx. There are several interesting options there. > > Best, > Scuri > > > On Thu, Aug 18, 2016 at 10:38 AM, Ranier VF <[email protected]> > wrote: > >> Hi, >> >> How can display values numeric with IupMatrix: >> >> >> Example: >> >> Value = 18.98 >> >> >> Storing in matrix: >> >> IupSetDoubleId2(mat, "", i + 1, 2, 18.98); >> >> >> How display: 18,98 >> >> With comma and 2 decimals? >> >> >> Best regards, >> >> >> Ranier >> >> ------------------------------------------------------------ >> ------------------ >> >> _______________________________________________ >> Iup-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/iup-users >> >> > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Iup-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/iup-users > >
------------------------------------------------------------------------------
_______________________________________________ Iup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iup-users
