Recent

Author Topic: TLineSeries marks style  (Read 1747 times)

Davidous

  • Full Member
  • ***
  • Posts: 107
TLineSeries marks style
« on: June 27, 2019, 01:33:28 pm »
Hello,

a question again...
In my Unit1.lfm is:

object sugar: TLineSeries
      Legend.Visible = False
      Marks.Distance = 2
      Marks.AutoMargins = False
      Marks.Format = '%2:s'
      Marks.Frame.Visible = False
      Marks.LabelBrush.Color = clNone
      Marks.LabelBrush.Style = bsClear
      Marks.LinkPen.Visible = False
      Marks.Style = smsLabel
      LineType = ltNone
      Pointer.HorizSize = 0
      Pointer.VertSize = 0
      Pointer.Visible = False
    end

In this you can see the Marks.Style = smsLabel line. It works without any problem...
When I try to do this at runtime with sugar.marks.style:=smsLabel I got an error with the text:
Identifier not found "smsLabel"
Why is that?  :o
« Last Edit: June 27, 2019, 01:36:13 pm by Davidous »

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: TLineSeries marks style
« Reply #1 on: June 27, 2019, 02:01:55 pm »
This is declared in unit TAChartUtils, IIRC.

Davidous

  • Full Member
  • ***
  • Posts: 107
Re: TLineSeries marks style
« Reply #2 on: June 27, 2019, 02:09:14 pm »
Thank you, now it works! :)

 

TinyPortal © 2005-2018