ProvideX V8.20 > Language Reference > 7. Control Object Properties
727
'SelectText$
Text contained within the highlight.
Example:
6000 ! 6000 - Example using multiple selection properties for a Grid
control
6010 CELL_SELECTIONS:
6020 TOTAL_SELECTED=G1'SELECTCOUNT
6030 IF G1'ROWSHIGH<1 OR TOTAL_SELECTED=0 THEN EXIT
6040 FOR T=1 TO TOTAL_SELECTED
6050 LET G1'SELECTINDEX=T
6060 LET SL_VAL$=G1'SELECTVALUE$
6070 LET SL_COL=G1'SELECTCOLUMN
6080 LET SL_ROW=G1'SELECTROW
6090 LET G1'ROW=-1
6100 LET G1'COLUMN=SL_COL
6110 LET SL_COL_TITLE$=G1'VALUE$
6150 MSGBOX "Cell Value: "+PAD(SL_VAL$,50)+SEP+"Column:
"+STR(SL_COL)+SEP+"Row: "+STR(SL_ROW)+SEP+"Column Title:
"+PAD(SL_COL_T
6150:ITLE$,50),"Selection Item "+STR(T)+" of "+STR(TOTAL_SELECTED)
6160 NEXT T
6170 EXIT
State Indicators (Tree Views)
The following properties are used to create and process state indicators:
'ItemState
State of `Item.
'StateBitmaps$
List of images used to display states.
'AutoState
Control auto toggling of state.
'CascadeState
Control cascading of states.
State indicators are basically images that will appear in front of a list box entry that
can be used to indicate whether the item has been selected or not. State indicators are
currently supported for tree view list boxes and can set up during the definition of a
list box control. For more information, refer to the LIST_BOX Directive, p.188.
Assigning Images
The application must set the 'StateBitmaps$ property in order to define the number
of images that will used in the display of state indicators. A maximum of 15 images
can be assigned. All images must be of the same size/format and may specify
transparency options. These images can be external or internal (See Displaying
Controls/Images, p.815).