Search found 5 matches

by runfastman
Thu Jul 21, 2011 10:12 pm
Forum: VCL
Topic: TAxisArrowTool limit range
Replies: 1
Views: 4513

TAxisArrowTool limit range

I have a Gantt chart that can one or two items on the y axis, or it can have 100+. I would like to use the TAxisArrowTool on the left axis of my Gantt chart. However, the user can then click the up or down arrow so many times that the data completely scrolls out of view. How can I limit that to the ...
by runfastman
Thu Jul 21, 2011 9:50 pm
Forum: VCL
Topic: Custom mark text and mark tips
Replies: 1
Views: 6678

Custom mark text and mark tips

I have a Gantt chart and I assign custom text to the marks text to show short detail at all times: Series.AddGantt(Now(), Now() + 24, i, 'My Y Label'); Series.Marks.Item .Text.Text := 'Short'; I also want to give longer detail as a marktip, so I have Series.Marks.Style := smsPointIndex; MarkTips.Sty...
by runfastman
Mon Oct 18, 2010 3:55 pm
Forum: VCL
Topic: TeeChart cursor pos to chart pos (CalcPosPoint equivalent)
Replies: 4
Views: 14951

Re: TeeChart cursor pos to chart pos (CalcPosPoint equivalent)

Never mind, I found it.

tttGraphic.Canvas.Calculate2DPosition(realX, realY, 0);
by runfastman
Mon Oct 18, 2010 1:58 pm
Forum: VCL
Topic: TeeChart cursor pos to chart pos (CalcPosPoint equivalent)
Replies: 4
Views: 14951

Re: TeeChart cursor pos to chart pos (CalcPosPoint equivalent)

Yes, I do this, but I need to know if the mouse is in a certain spot in the shape. Example : If mouse is over top half or shape then Caption := 'Top Section' else if in bottom half then Caption := 'Bottom Section' node := tttGraphic.ClickedShape(x, y); realY := tttGraphic.HorzScrollBar.Position; if ...
by runfastman
Thu Oct 14, 2010 3:05 pm
Forum: VCL
Topic: TeeChart cursor pos to chart pos (CalcPosPoint equivalent)
Replies: 4
Views: 14951

TeeChart cursor pos to chart pos (CalcPosPoint equivalent)

I am trying to see if my cursor is in a certain position inside of a TTreeNodeShape or on the Tree. I see how to do it with a TChart (CacPosPoint in the help doc, "Custom drawing on the Chart"), is there an equivalent for TTree. I can do it just fine, if the chart is not zoomed, but as soon as I zoo...