Recent

Author Topic: Is there a Chartlistbox "Enabled" by item?  (Read 1470 times)

jbmckim

  • Full Member
  • ***
  • Posts: 144
Is there a Chartlistbox "Enabled" by item?
« on: December 27, 2019, 06:34:21 pm »
I'm looking to enable/disable individual chartlistbox items as I have 4 ChartLineSeries, any one of which may be either on or off.  The on/off and other parameters associated with the curve data are handled in a separate form not available when the application is tracking data.  Turning off the unused is indicated. 

I can (and in any case will) cue the user by re-titling the chartlineseries but it would be better to do that in conjunction with disabling the individual listbox.  I'd rather not trap the box check and "null" it out when a disable would prevent entry in the first place. I found the enable/disable for the entire box but can't seem to locate for individual items.

Does this function exist and if so, where is it hiding in plain sight such that I can't find it?  %)

Thanks

wp

  • Hero Member
  • *****
  • Posts: 13323
Re: Is there a Chartlistbox "Enabled" by item?
« Reply #1 on: December 27, 2019, 07:37:04 pm »
I'm afraid, I don't understand what you want to achieve. But to answer your question: no, individual listbox items (series) cannot be disabled.

Are you aware of the specific events OnItemClick (Series label in listbox clicked), OnSeriesIconDblClick (series symbol double-clicked), OnCheckboxClick (series checkbox clicked)?

See demo in folder components/tachart/demo/listbox of your Lazarus installation.

jbmckim

  • Full Member
  • ***
  • Posts: 144
Re: Is there a Chartlistbox "Enabled" by item?
« Reply #2 on: December 28, 2019, 01:35:55 am »
I can trap the click.  I was just hoping to be able to toggle the enable.

Thanks.

 

TinyPortal © 2005-2018