TVirtualDrawTree.SelectionBlendFactor Property

Virtual Tree View

Read or set the current blend factor for the multi selection rectangle and the node selection rectangle.

Pascal
property SelectionBlendFactor: Byte;
Description

For a visually appealing tree some operations use alpha blending. One of these operations is multi selection using the mouse. Another one is the rectangle drawn around the caption of selected nodes. Both rectangles use the SelectionBlendFactor to determine how much of the underlying tree image and how much of the rectangles should be seen. The factor can be in the range of [0..255] where 0 means the rectangle is fully transparent and 255 it is fully opaque. 

 

If you don't like to use blended node selection rectangles then switch them off by removing toUseBlendedSelection from TVTPaintOptions. For selecting a certain multi selection rectangle style use DrawSelectionMode. 

 

Notes

Alpha blending is only enabled when the current processor supports MMX instructions. If MMX is not supported then a 

dotted draw selection rectangle and an opaque node selection rectangle is used.

See Also

DrawSelectionMode, TVTPaintOptions

Class
Links
What do you think about this topic? Send feedback!