You can't access the Canvas properties (Brush, Pen, Font, etc) at design time. Since we are in a "custom drawing" (drawing lines and texts directly using canvas functions), we have to set these Brush, Pen and Font properties before using the canvas Brush, Pen and Font to draw lines, shapes and texts with the VertLine3D, TextOut3D (or Rectangle, Ellipse, Cube, Polygon...) canvas functions.ulibru wrote:thanks, Brush.Style has solved the problem.
But where is it set at design time? I wonder.
Change this line in OnAfterDraw event:ulibru wrote:A final remark: the solution to use AfterDraw is not complete. So e.g. simply inverting the axis does not call the event and the label is at a wrong position.
Code: Select all
XPos:=IEndPos;
Code: Select all
XPos:=CalcPosValue(Maximum);
I'm not sure to see this. If you can explain it better, showing an image if necessary, I'll will be pleased to try to suggest a solution if I can think on any.ulibru wrote:Viewing the chart in e.g. top view or front view does not show the label.
ulibru wrote:It seems better I forget it all.