Recent

Author Topic: hide axes by code  (Read 1289 times)

Nicole

  • Hero Member
  • *****
  • Posts: 1324
hide axes by code
« on: November 05, 2022, 01:43:29 pm »
I want to hide away an axes at runtime.

Ax1.visible:=false;

This does not work.
How will it work?

wp

  • Hero Member
  • *****
  • Posts: 13550
Re: hide axes by code
« Reply #1 on: November 05, 2022, 02:13:07 pm »
You probably see the Chart.Frame which is drawn over the axes. So, set also Chart.Frame.Visible := false.

Nicole

  • Hero Member
  • *****
  • Posts: 1324
Re: hide axes by code
« Reply #2 on: November 05, 2022, 08:42:42 pm »
Thank you for the answer.

The problem is not "also", but "not at all". The visual property is not accepted at runtime / by the compiler.

wp

  • Hero Member
  • *****
  • Posts: 13550
Re: hide axes by code
« Reply #3 on: November 05, 2022, 10:33:01 pm »
The visual property is not accepted at runtime / by the compiler.
You mean "Visible"? Your statement is not correct - all "Visible" properties of a chart can be set at runtime. Look at the attached mini project in which the Frame as well as every part of the axes can be turned on and off by code.

 

TinyPortal © 2005-2018