title: How to handle TCategoryButtons item visibility on search?
body: <p>I'm using TCategoryButtons in my Delphi VCL project and I made a search procedure which is basically using loop for <strong>MyCategoryButtons.Categories</strong> and inside of this loop, I use second loop for each items with <strong>MyCategoryButtons.Categories[i].Items</strong>.</p>
  
  <p>Here is my search code:</p>
  
  <pre><code>MyCategoryButtons.Categories[i].Items[j].CategoryButtons.Visible :=
              ContainsText(MyCategoryButtons.Categories[i].Items[j].Caption,
              SearchText);
  </code></pre>
  
  <p>When I follow up the code with debugger, It works well. But I can't update component visually. How can I update those visible items and how to hide item whose visible property value is false. </p>
  
  <p>Thanks.</p>