I thought that the <Axis>.Labels.Font.Size slider in the Chart Editor
was connected to the <Axis>.LabelSize entry in the Object Inspector
Now I'm curious: What is the Object Inspector entry for?
Search found 28 matches
- Thu Oct 10, 2024 7:43 pm
- Forum: VCL
- Topic: adaptive use of Distance parameter
- Replies: 6
- Views: 36072
- Tue Oct 08, 2024 6:43 pm
- Forum: VCL
- Topic: adaptive use of Distance parameter
- Replies: 6
- Views: 36072
Re: adaptive use of Distance parameter
In previous post, it was impolite of me to not explicitly say where my demo code is. It is at https://www.fenichel.net/programs/ScaleTest.zip
- Mon Oct 07, 2024 7:41 pm
- Forum: VCL
- Topic: adaptive use of Distance parameter
- Replies: 6
- Views: 36072
Re: adaptive use of Distance parameter
Distance seems to work differently on custom axes from the way it works on native axes. My demo code is in the usual place; the pertinent part of the code (starting at line 118 of ScaleTestMain ) is DistanceCorrection := StrToIntDef(lbedDistanceCorrection.Text, 0); with chartTest do begin (* chartT...
- Mon Oct 07, 2024 3:46 am
- Forum: VCL
- Topic: adaptive use of Distance parameter
- Replies: 6
- Views: 36072
Re: adaptive use of Distance parameter
I didn't mean to suggest that there was no way to get the width of the Labels column. function LabelsWidth(Chart: tCustomChart; Axis: tChartAxis): integer; (* compute the width (in pixels) of the labels of this vertical axis. This code ASSUMES that the longest label (in chars) will be the widest (in...
- Sat Oct 05, 2024 8:16 pm
- Forum: VCL
- Topic: adaptive use of Distance parameter
- Replies: 6
- Views: 36072
adaptive use of Distance parameter
I am trying to make dynamic use of the new Axis.Title.Distance parameter. My code creates simple Cartesian graphs dynamically, so I know the LeftAxis 's Minimum, Maximum, and Increment only at run time. I'd like to use Distance to move the title out just enough to clear the widest label. Simple code...
- Wed Oct 02, 2024 9:51 pm
- Forum: VCL
- Topic: scales and axes
- Replies: 37
- Views: 158273
Re: scales and axes
Thanks for your clarification.
I've taken this development as far as I want to for now. My final demo code is at the usual place (https://www.fenichel.net/programs/ScaleTest.zip), and I'll leave it there for anyone who might want to see how to set up parallel scales to existing axes.
I've taken this development as far as I want to for now. My final demo code is at the usual place (https://www.fenichel.net/programs/ScaleTest.zip), and I'll leave it there for anyone who might want to see how to set up parallel scales to existing axes.
- Thu Sep 26, 2024 8:48 pm
- Forum: VCL
- Topic: scales and axes
- Replies: 37
- Views: 158273
Re: scales and axes
Those are good changes. Looking at the latest version of my demo (on my site in the usual place), everything works well. There is a mildly irritating left-right asymmetry of spacing (Is Distance always counting from the same side of the labels column, instead of an OtherSide -dependent side?), but i...
- Wed Sep 25, 2024 5:25 pm
- Forum: VCL
- Topic: scales and axes
- Replies: 37
- Views: 158273
Re: scales and axes
I have to think more about this, but I think I'm going to end up not using Distance , and returning to my strategy of having two axes wherever there used to be one, with one carrying the title and the other carrying the axis proper, ticks, and labels. That strategy uses a lot of apparatus, but then ...
- Mon Sep 23, 2024 7:07 pm
- Forum: VCL
- Topic: scales and axes
- Replies: 37
- Views: 158273
Re: scales and axes
I don't understand the sequence that uses an axis's PositionPercent, Texts.MarginToAxis, and Title.Distance to determine the displayed positions of the axis, its ticks & labels, and its title. I had expected the sequence to be fix the axis using PositionPercent , fix the ticks & labels by using Marg...
- Sat Sep 21, 2024 8:00 pm
- Forum: VCL
- Topic: scales and axes
- Replies: 37
- Views: 158273
Re: scales and axes
TeeRecompile now works for me. I must have been making some stupid transcription error in editing TeEngine.pas . Distance works imperfectly for me. It does fine with LeftAxis and RightAxis . I haven't tried it on the top or bottom axes. It seems to be ignored by auxiliary axes (my tScale s). As usu...
- Fri Sep 20, 2024 4:51 pm
- Forum: VCL
- Topic: scales and axes
- Replies: 37
- Views: 158273
Re: scales and axes
I can't tell what the problem is. I can successfully run TeeRecompile with TeEngine.pas unmodified. As carefully as I could, I re-edited TeEngine.pas to incorporate the changes you list in your post, and I get the same error messages. That Repaint is undeclared is especially weird, since that is suc...
- Thu Sep 19, 2024 8:43 pm
- Forum: VCL
- Topic: scales and axes
- Replies: 37
- Views: 158273
Re: scales and axes
Here is a screenshot of errors from TeeRecompile:
- Thu Sep 19, 2024 8:25 pm
- Forum: VCL
- Topic: scales and axes
- Replies: 37
- Views: 158273
Re: scales and axes
Are there instructions somewhere for TeeRecompile? I tried to run it naively, and I got various errors. I can post the error messages here, but maybe pointing me to some instructions would take less of your time.
- Mon Sep 16, 2024 6:28 pm
- Forum: VCL
- Topic: scales and axes
- Replies: 37
- Views: 158273
Re: scales and axes
The solution is even simpler than that. Once OtherSide is in play, no OthSide is needed. Since my tScale is a descendant of tChartAxis , I can just set OtherSide := TheParentAxis.OtherSide; around the same time as I set Horizontal := TheParentAxis.Horizontal; inside tScale 's constructor. My old Tog...
- Mon Sep 16, 2024 6:45 am
- Forum: VCL
- Topic: scales and axes
- Replies: 37
- Views: 158273
Re: scales and axes
I think you are not looking at the latest version of my demo. When I run it I see
But you're right; I hadn't noticed the OtherSide parameter. Should it be mentioned in the Axis chapter of the tutorial?
But you're right; I hadn't noticed the OtherSide parameter. Should it be mentioned in the Axis chapter of the tutorial?