Aide:GUICtrlCreateListViewItem.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
GUICtrlCreateListViewItem

###Description###
Creates a ListView item.

###Syntax###
GUICtrlCreateListViewItem ( "text", listviewID )


###Parameters###
@@ParamTable@@
text
	subitemtext separated with <a href="AutoItSetOption.htm#GUIDataSeparatorChar">Opt("GUIDataSeparatorChar")</a>.
listviewID
	controlID of the ListView control holding the item.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Returns the identifier (controlID) of the new control.
Failure:	Returns 0.
@@End@@


###Remarks###
This function creates the individual ListView items that can be selected.  The items function as normal controls and can be set with <a href="GUICtrlSetData.htm">GUICtrlSetData</a>.
Items can be deleted as with any other control by using <a href="GUICtrlDelete.htm">GUICtrlDelete</a>.
ListView items can be dragged and drop into an Edit or Input control with a $GUI_DROPACCEPTED state.
See GUICtrlCreateListView about resizing of the column.

The special flag $GUI_BKCOLOR_LV_ALTERNATE can be used with Listview control to give alternate background of the ListviewItems lines.
The odd lines will get the color set by GUICtrlSetBkColor of the Listview control.
The even lines will get the color set by GUICtrlSetBkColor of the ListviewItem control.

###Related###
GUICtrlCreateListView, GUICtrlSetData, GUICtrlSetState, GUICtrlDelete, GUIGetMsg, GUICtrlRead, GUIDataSeparatorChar (Option)


###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

Texte en Français


Traducteur :

Contributeurs (pour les modifications avant le Wiki) :