DxListGetItemSelected: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
			
		
		
	
 (Created page with "__NOTOC__ {{Client Function}} Esta funcion obtiene el item y la row seleccionado de una dxList.  <small>'''<span style="color:#ff0000; text-shadow:black 0em 0.1em 0.1em;">''Aviso: Esta es una función exportada por Modern-Library!''</span>'''</small> ==Sintaxis== <syntaxhighlight lang="lua">bool dxListGetItemSelected(element element)</syntaxhighlight>  ===Argumentos requeridos=== * '''element''': La dxList creada.  ===Retorna=== * '''valores int: ''' devuelve...")  | 
			
(No difference) 
 | 
Latest revision as of 16:36, 6 October 2024
Esta funcion obtiene el item y la row seleccionado de una dxList.
Aviso: Esta es una función exportada por Modern-Library!
Sintaxis
bool dxListGetItemSelected(element element)
Argumentos requeridos
- element: La dxList creada.
 
Retorna
- valores int: devuelve 2 valores numericos (itemID,rowID) en caso de verdadero .
 - valor booleano: en caso falso.
 
Ejemplo de Uso
-- Activación de la libreria
loadstring( exports.dxLibrary:dxGetLibrary( ) )( )
-- Ventana (Opcional)
win = dxWindow(251, 21, 783, 635, 'Window DEMO', true, true)
-- Creamos la lista (dxList).
list = dxList( 312, 347, 250, 203, win )
-- Aplicamos la función y obtenemos su resultado booleano o numerico.
itemSelected,itemsRow = dxListGetItemSelected(list)
-- Imprimimos el resultado en la consola (SOLO EJEMPLO)
if itemSelected then
    print(itemSelected,itemsRow) -- Usa 'itemsRow' para obtener el segundo resultado
else
    print("sin resultados") -- Retorna false en ambos valores
end
Ver también
General Functions
- dxGetLibrary
 - dxGetScreen
 - dxSet
 - dxGet
 - dxSetText
 - dxSetTitle
 - dxSetVisible
 - dxSetEnabled
 - dxSetPosition
 - dxGetPosition
 - dxSetSize
 - dxGetSize
 - dxGetRootParent
 - dxSetColorBackground
 - dxSetColorText
 - dxSetColorSelected
 - dxSetColorBorder
 - dxFont
 - dxSetFont
 - dxGetText
 - dxSetTitle
 - dxGetTitle
 
Window
Button
CheckBox
Edit
GridList
- dxGridList
 - dxGridListAddItem
 - dxGridListRemoveItem
 - dxGridListAddColumn
 - dxGridListRemoveColumn
 - dxGridListGetItemSelected
 - dxGridListSetItemSelected
 - dxGridListGetScrollHV
 
Image
Label
List
- dxList
 - dxListAddItem
 - dxListRemoveItem
 - dxListGetItemSelected
 - dxListSetItemSelected
 - dxListSetColorFilaItem