Custom format for calcualated face

edited 1:44AM in FastCube
Hi,

Very impressive product!

Can you supply an example for setting customized formats from code? For instance, to color a figure black if >=0, red if < 0.

Thanks

Andrew.

Comments

  • edited 1:44AM
    Hi.

    Use in measure (TfcFieldOfRegion):
    procedure AddRange(ALow, AHigh: Real; ATextColor, AFillColor: TColor);
    procedure DeleteRange(AIndex: integer);
    property RangeList: TList read FRangeList;

    For exmaple:
    AMeasureField.AddRange(0, MaxDouble, clBlack, clWhite);
    AMeasureField.AddRange(MinDouble, 0, clRed, clWhite);

    Best regard, Oleg Pryalkov.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.