Recent

Author Topic: TLineSeries marks style  (Read 303 times)

Davidous

  • Jr. Member
  • **
  • Posts: 67
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: 6235
Re: TLineSeries marks style
« Reply #1 on: June 27, 2019, 02:01:55 pm »
This is declared in unit TAChartUtils, IIRC.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Davidous

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