Jump to content

TNumberBox suffix?

Recommended Posts

Posted (edited)

In TNumberBox, it seems not possible to set a unit suffix like "pixel", "cm" or similar. Or did I miss something?

Edited by PeterPanettone

Share this post

Link to post

VCL or FMX ? If VCL, then:

NumberBox1.Mode := nbmCurrency;
NumberBox1.Decimal := 0;
NumberBox1.CurrencyString := 'pixel';
NumberBox1.CurrencyFormat := 3;
// etc, eg MinValue=0, MaxValue=1500


Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now