SA project - Equipment Treeview - Column width

Hi, 

Can we increase/extend the column width of the Treeview cell I've indicated?

There are room for more width usage, and the user could see more of the tag/description without using the scroll bar. 

Appreciate any tip and help,

Regards,

Rune

Parents
  • Hi Rune,

    Can you check the online help:
    System Projects Reference > Situational Awareness System Projects > Situational Awareness Include Project > Tree View Genie

    There appears to be a parameter for this Genie to adjust the width.

    Treeview Width

    The width of the area the tree view will occupy (in pixels).

    If the width of the expanded tree extends beyond the left edge of the alarm count list, a horizontal scroll bar will appear.

  • Thanks Olivier,

    Also got this from the support desk: 

    The width of the item fields is automatically calculated in the _Treeview_OnInit() of the Treeview.ci in the SA_Include project in the following lines:

     // Setup Treeview (item) width after initialising custom columns        nItemColumnWidth = nWidth - ((nTopPriorities + bDisplayShelved) * (nPrioritySpacing + nPriorityCountSpacing));        nItemColumnWidth = nItemColumnWidth - _Treeview_GetCustomColumnsWidth(hViewArray, nItemColumnWidth - 20);  // reserve some min. space for the item column


    The variable nWidth is the value declared in the TreeView genie by setting the "Treeview Width" parameter (see pic below). Then, it is taking into account as well some space to show the alarm priorities.



    Thus, if you want to make the item field wider, you need to increase the "Treeview Width" parameter in the genie settings.

Reply
  • Thanks Olivier,

    Also got this from the support desk: 

    The width of the item fields is automatically calculated in the _Treeview_OnInit() of the Treeview.ci in the SA_Include project in the following lines:

     // Setup Treeview (item) width after initialising custom columns        nItemColumnWidth = nWidth - ((nTopPriorities + bDisplayShelved) * (nPrioritySpacing + nPriorityCountSpacing));        nItemColumnWidth = nItemColumnWidth - _Treeview_GetCustomColumnsWidth(hViewArray, nItemColumnWidth - 20);  // reserve some min. space for the item column


    The variable nWidth is the value declared in the TreeView genie by setting the "Treeview Width" parameter (see pic below). Then, it is taking into account as well some space to show the alarm priorities.



    Thus, if you want to make the item field wider, you need to increase the "Treeview Width" parameter in the genie settings.

Children
No Data