guides:programming:programmers_reference_manual:selectionstyle_property_listbox

SELECTIONSTYLE property (Listbox)

Specifies whether items in a ListBox control are drawn using the classic ListBox style (solid color) or the TreeView style (lighter fill color with a border).

ListBox style

TreeView style

A numeric value that describes how the items in the ListBox should be drawn.

ValueDescription
0Use the default settings for the renderer.
1Paint non-header items in the normal ListBox style.
2Paint the non-header items using a TreeView style (if supported by the renderer).
DevelopmentRuntimeIndexedScaledSynthetic
Get/SetGet/SetNoNoNo

Not all renderers support a TreeView style that is different from the ListBox style, therefore the SELECTIONSTYLE property has no effect when using the following:

• CLASSIC renderer

• AERO renderer

Equated constants for this property can be found in the PS_LISTBOX_EQUATES insert record.

 
Declare Subroutine Set_Property_Only

   $Insert PS_ListBox_Equates

   

   // Example - ensure that the LST_CONTROLS ListBox always

   // uses the ListBox style regardless of the renderer.

   

   Set_Property_Only( @Window : ".LST_CONTROLS", "SELECTIONSTYLE", LBRS_LISTBOX$ )
 
 
 
 
 

SYSTEM VISUALSTYLE property, WINDOW VISUALSTYLE property

  • guides/programming/programmers_reference_manual/selectionstyle_property_listbox.txt
  • Last modified: 2023/10/25 10:50
  • by 127.0.0.1