XTREE enhancement: new Advanced Coldef Options for radio/checkbox state-specific background colors:
RGBbg0=r,g,b
RGBbg1=r,g,b
RGBbg2=r,g,b
These act similarly to other RGBbg* options, except here they only affect radio buttons and checkboxes, causing the specified background color to be applied according to the state of the cell (0=cleared, 1=set, 2=indeterminate).
Notes:
• | The effect is immediate; there is no need to exit / reload the tree. |
• | It only applies to cells that have a visible checkbox or radio button. |
• | It applies equally whether the cell is enabled or disabled. |
• | Unlike the generic RGBbg= clause, there is no optional index parameter. |
• | When combined with other RGBbg clauses that affect the same column, the new state-specific versions take precedence. For example, if a checkbox column has the options RGBbg=200,200,200~RGBbg1=255,200,200~, then the cells containing a checkmark (state=1) will get the RGBbg1 value, while all the other cells (clear, indeterminate, or no checkbox) will use the standard RGBbg value. |
See EXLIB [908,21] sample program XTRA6 for an example.