g.lanzi wrote:In order to have it works in a generic way you can use the Book's reflection and a proper objects' nomenclature.
This is exactly what I want to do. I understand how to reference an individual object (by name) within a book per your code in the ClinicalStudy.SetSectionsVisibility.
But I can't find anything in the documentation that shows:
1. How to reference a collection of Books, Reports, Sections or Boxes
2. How to identify the box that has focus
Here is the pseudocode for what I'd like to do:
MyBoxCollection = MyReport.MySection.Boxes
IDBox MyBox = New()
For Each MyBox in MyBoxCollection
{
If MyBox.Focus = True
{
MyBox.VisualStyle = ActiveBoxStyle
}
Else
{
MyBox.VisualStyle = NormalBoxStyle
}
}
Can you point me to some documentation or a code example?