Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

TElCalculatorEdit + Decimal Places

I'm a bit unclear as to how to change the number of displayed decimals in a TElCalculatorEdit. The one property that seems appropriate, Precision, is protected not published. 

Thanks,
Mitch

Comments

  • 2 Comments sorted by Votes Date Added
  • This property is intentionally declared protected. As usually you can simply subclass TElCalculatorEdit, though.

    (s.th. like

    type 
     TMyHackCalculatorEdit = class(TElCalculatorEdit)
     public
      property Precision;
     end;

    Now you can write in code:
    TMyHackCalculatorEdit(InstanceCalculatoredit).Precision := MyValue;
    )

Sign In or Register to comment.