Recent

Author Topic: Accessing to frReport component by code  (Read 1400 times)

essence-ciel

  • New Member
  • *
  • Posts: 17
Accessing to frReport component by code
« on: August 25, 2024, 02:07:03 am »
Hello,
Sorry for my bad English.

I'm looking to access frReport components programmatically from a Lazarus form.

I started with this code:


Code: Pascal  [Select][+][-]
  1. for I := 0 to frReport1.ComponentCount -1 do
  2.       if (frReport1.Components[I] is TGroupHeader) then
  3.             frReport1.GroupHeader1.Visible := CheckBox3.Checked;  
   

But it's impossible to access frReport GroupHeader and display/hide the frReport GroupHeader. Ditto for changing the color of the associated Memo.

How can I retrieve the component, the index of it and modify it by code, please?

Windows 11, Lazarus 3.4, Sqlite 3.46.1

essence-ciel

  • New Member
  • *
  • Posts: 17
Re: Accessing to frReport component by code
« Reply #1 on: August 25, 2024, 04:50:50 am »
Sorry error of topic.

 

TinyPortal © 2005-2018