Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Change the margin after drawing the chart.

 Post Reply Post Reply
Author
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Topic: Change the margin after drawing the chart.
    Posted: 28 Jan 2016 at 5:44am
Hello,
Im using 'TMS Advanced Charts for VCL'.

I wanna change the margin after drawing the chart.
In this code.
  procedure TForm1.Edit1Change(Sender: TObject);
  begin
     if TryStrToInt(Edit1.Text,i) then 
       AdvGDIPChartView1.Panes[0].Margin.TopMargin  := i;
  end;

Certainly the margin is changed, but the chart is not redrawn.
The size of the chart is not changed.
When the margin is large, Part of the chart disappears.
Please tell me how to resolve.

Best reagards
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3568
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 28 Jan 2016 at 8:41am
Wrap the code with BeginUpdate and EndUpdate as explained at the following tip:


Kind Regards, 
Pieter
Back to Top
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jan 2016 at 1:18am
I see.

The answer was easy X)
I read all of the FAQ.
https://www.tmssoftware.com/site/advchart.asp?s=faq

Thank you.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down